網頁中,一開始我是這樣寫
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="jquery.js"></script>
<head></head>
<script language="javascript">
<!--
$(document).ready(function(){
$.ajax({
url: 'something.asp',
type: 'POST',
error: function(xhr) {
alert("error");
},
success: function(xhr) {
$('#something').html(xhr);
}
});
});
-->
</script>
<body>
<table id="something">
</table>
</body>
</html>