摘要:
asmx.csusing System.Web.Script.Services;[System.Web.Script.Services.ScriptService]public class test : System.Web.Services.WebService{ [ScriptMethod(UseHttpGet = true)] public void testMethod(int id) { }}js$.ajax({ url: 'test.asmx/testMethod', dataType: "json", data: "id=2" 阅读全文