您的位置:首页 > Web前端 > JQuery

【AJAX】 jQuery应用之post提交

2017-11-28 14:40 381 查看
  前台JQ代码:

   
$.ajax({
type: "post",
url: "Default.aspx/PipeData",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (res) {
alert(res.d)
},
error: function (xmlReq, err, c) {
alert("error!!");
}
});


后台代码:

  public static string PipeData()
{
string myjson = "hello";
return myjson;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  jquery ajax post