$.ajax({
type: "POST",
//contentType: "application/json",
url: "http://192.168.0.210:7000/websrv1/Service.asmx/HelloWorld",
data: "",
datatype: "json",
success: function (result) {
try {
alert(result.d);
}
catch (e) {
alert(e);
}
},
error: function (x, e) {
alert("2");
}
}
);
地址是本机的ip,webservice发布在本机
type: "POST",
//contentType: "application/json",
url: "http://192.168.0.210:7000/websrv1/Service.asmx/HelloWorld",
data: "",
datatype: "json",
success: function (result) {
try {
alert(result.d);
}
catch (e) {
alert(e);
}
},
error: function (x, e) {
alert("2");
}
}
);
地址是本机的ip,webservice发布在本机
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货