jquery的 ajax方法 一直提交不到后台去
郁闷了
方法为 :
<script type="text/javascript">
function doCheckUser() {
$.ajax({
type: "post",
url: "Default.aspx/aa",
contentType:"application/json;",
data: "{}",
success: function(msg) {
alert(msg);
}
});
}
</script>
后台代码:
[System.Web.Services.WebMethod]
public static string aa()
{
return "aa";
}
问题图: 提交后 弹出 一个 IE 框 出来 ,里面是 html 源代码