更新时间: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); }
});