常规请求基本格式1[WebMethod]2publicstringSayHello(stringname)3{4return"Hello"+name;5}1$.ajax({2url:"/CommonService.asmx/SayHello",3type:"Post",4dataType:"json",5contentType:"application/json;charset=utf-8",6data:"{name:'Varchar32'}",7success:function(data)...
查看全文