我有这个页面
<html>
<head>
<script type="text/javascript">
$(document).ready(function(){
alert("asdf");
var url = "http://localhost/test/test.php";
$("#button").on("click", function() {
$('body').load( url );
});
});
</script></head>
<body>
<input type="button" id="button" value="click" />
</body>
</html>
我想加载 url 的内容并将其放在正文中,但什么也没发生,请问为什么?怎么解决 ?