<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="jquery.min.js"></script>
<script>
$(function(){
$("#btn").click(function(){
$.ajax({
url:"ajax_content.aspx",
type:"GET",
success:function(data){
alert(data);
},
error:function(){
alert("请求失败!");
}
});
});
});
</script>
</head>
<body>
<input id="btn" type="submit" value="提交" />
</body>
</html>
jquery-ajax-ajax
最新推荐文章于 2023-10-20 23:35:27 发布