functionsave(){varstrs=$("html").html();$.ajax({type:"post",url:"Show.aspx/Save",contentType:"application/json;",data:"{'str':'"+strs+"'}",error:function(err){alert("出错...
function save() {
var strs = $("html").html();
$.ajax({
type: "post",
url: "Show.aspx/Save",
contentType: "application/json;",
data: "{'str':'" + strs + "'}",
error: function(err){
alert("出错!");
},
success: function (msg) {
if (msg.d == "true") {
alert("成功!");
}
}
});
}
如果页面数据量不大,没问题后台可以接收到,数据量大了,就出错了。去了好几个论坛都没找到想要的解决方案或者是相关解释。网上也没有找到相关的有用资料。可行,请给出解决方案,不行,请给出相关解释。谢谢!!!
展开