在一个可疑的地方,您的代码看起来不错:
url。您应该将其替换
url为
"TAPI.asmx/simplestMethod"或
"/d2/TAPI.asmx/simplestMethod"。
此外,如果您想研究如何使用参数调用Web方法或从Web方法返回更复杂的数据,请查看如何构建JSON对象以发送到AJAXWebService?和asmx网络服务,json,javascript /
jquery?,如果ContentType不是JSON,我可以从.asmxWeb服务返回JSON吗?。

在一个可疑的地方,您的代码看起来不错:
url。您应该将其替换
url为
"TAPI.asmx/simplestMethod"或
"/d2/TAPI.asmx/simplestMethod"。
此外,如果您想研究如何使用参数调用Web方法或从Web方法返回更复杂的数据,请查看如何构建JSON对象以发送到AJAXWebService?和asmx网络服务,json,javascript /
jquery?,如果ContentType不是JSON,我可以从.asmxWeb服务返回JSON吗?。