ajax请求中返回的msg中为什么要用msg.d 才是返回的数据呢?
$.ajax({type:"POST",contentType:"application/json;utf-8",data:sdata,url:"BillAdd.aspx...
$.ajax({
type: "POST",
contentType: "application/json;utf-8",
data: sdata,
url: "BillAdd.aspx/GetHtPrice",
success: function (msg) {
if (eval($("#txtAitPrice").val()) > eval(msg.d)) {
alert("单价超过限制,请重新输入!");
$("#txtArice")[0].focus();
}
} 展开
type: "POST",
contentType: "application/json;utf-8",
data: sdata,
url: "BillAdd.aspx/GetHtPrice",
success: function (msg) {
if (eval($("#txtAitPrice").val()) > eval(msg.d)) {
alert("单价超过限制,请重新输入!");
$("#txtArice")[0].focus();
}
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询