ajax用法

1.将其他页面加载进来

<head>
<script type="text/javascript" src="~/Scripts/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#b01").click(function(){
htmlobj=$.ajax({url:"Register",async:false});
$("#myDiv").html(htmlobj.responseText);
});
});
</script>
</head>
<body>

<div id="myDiv"><h2>通过 AJAX</h2></div>
<button id="b01" type="button">改变内容</button>

</body>

2.点赞

http://blog.csdn.net/chinacsharper/article/details/9748639

posted @ 2017-08-13 15:05  jiangcm  阅读(180)  评论(0编辑  收藏  举报