jquery $.ajax相关用法分享
代码如下: $.ajax({ type: “GET”, url: “Services/EFService.svc/Members”, data: “{}”, contentType: “application/json; charset=utf-8”, dataType: “json”, success: function (data) { // Play with returned data in JSON format }, error: function (msg) { alert(msg); } }); 全局事件是每次的Ajax请求都会触发的,它会向DOM中的所有元素
下载地址
用户评论