摘要:
首先我承认,WebService技术早就不是新鲜玩意了,下面只是对整个过程的代码总结。前台选择jQuery发送ajax请求,代码如下:1 $.ajax({ type: "post", url: "Service.asmx/HelloWorld",2 contentType: "application/json;charset=utf-8",3 dataType: "json",4 success: function (msg) {5 alert(msg.d);6 } 7 });参数中,type必须是post类型,c 阅读全文