jquery ajax代码可以从另一个域名或其他网站调用web服务吗?
像这样:
可以jquery ajax调用外部web服务?
$.ajax({
type: "POST",
url: "http://AnotherWebSite.com/WebService.asmx/HelloWorld",
data: "{'name':'" + $('#price').val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {alert(msg);}
});
,我应该如何配置此WebService?
我没有代表进行编辑,但你应该Greasemonkey的正确拼写。 – Benson 2009-04-07 19:17:43