jquery $.ajax相关用法分享

上传:darker79302 浏览: 16 推荐: 0 文件:PDF 大小:42.66KB 上传时间:2021-02-22 00:56:17 版权申诉
代码如下: $.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中的所有元素
上传资源
用户评论