【AJAX】 jQuery应用之post提交
2017-11-28 14:40
381 查看
前台JQ代码:
后台代码:
public static string PipeData()
{
string myjson = "hello";
return myjson;
}
$.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 get
- 89.JS的一些应用(发送ajax和post/get提交)
- jQuery 中 ajax 提交数据应用的一个小demo
- JQuery中Ajax的Post提交中文乱码、windows.location.href 中文汉字乱码和springmvc使用原生态HttpServletRequest接收参数中文乱码解决办法
- JQuery ajax post/get 提交方式的注意问题
- jquery ajax post 提交模板
- jQuery Form 表单提交插件-----ajaxSubmit() 的应用
- JQuery中Ajax的Post提交在IE下中文乱码的解决方法
- JQuery中Ajax的Post提交中文乱码的解决方案
- jQuery应用--$.post,$.get,$.getJSON提交方式
- JQuery在Ajax的Post提交中国乱码的解决方案
- .NET ScriptManager PageMethod的应用 一次提交多行数据 (感觉像jquery 的$.ajax)
- jQuery实现Ajax应用加载(load/getJSON/getScript/get/post/serialize/ajax/ajaxSetup/ajaxStart/ajaxStop)
- jQuery的ajax的form提交方法应用
- JQuery $.ajax $.post 提交问题
- Jquery:ajax post get提交
- jquery中ajax应用——get()和post()
- JQuery中Ajax的Post提交在IE下中文乱码的解决方法
- jquery 使用$.ajax post方法提交数据
- radio post只传第一个radio的值,用JQuery的ajax提交radio选项