且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用jquery从其他项目中使用Web服务

更新时间:2023-08-31 17:13:40

.ajax({

url:webserviceurl,



dataType:json,

类型:post,

contentType:application / json,



成功:function(){alert( '你好'); },

错误:function(e){alert(webserviceurl); }

});
.ajax({
url: webserviceurl,

dataType: "json",
type: "post",
contentType: "application/json",

success: function () { alert('hello'); },
error: function (e) { alert(webserviceurl); }
});