jquer基本用法三 -ajax
阿新 • • 發佈:2019-02-03
<html>
<head>
<title>ajax example</title>
<script src="~/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#btnajax').click(function (even) {
$('#div1').load("/javaScript/JQueryTest", { "resultType": "html" });
})
});
</script>
</head>
<body>
<button type="button" id="btnajax">使用ajax的onload</button>
<div id="div1"></div>
</body>
</html>
<head>
<title>ajax example</title>
<script src="~/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#btnajax').click(function (even) {
$('#div1').load("/javaScript/JQueryTest", { "resultType": "html" });
})
});
</script>
</head>
<body>
<button type="button" id="btnajax">使用ajax的onload</button>
<div id="div1"></div>
</body>
</html>