摘要: a.) abort() 停止当前请求b.) getAllResponseHeaders() 把HTTP请求的所有响应首部作为键值对返回c.) open("method", "url", async) 建立对服务器的调用。Method参数可以是对GET、POST, url可以是相对或者绝对路径, 第三 阅读全文
posted @ 2017-05-17 21:19 十六号街 阅读(398) 评论(0) 推荐(0) 编辑
摘要: function getXHR() { // 该方法用于获取Ajax通信对象 var xhr = null; if (window.XMLHttpRequest != null && window.XMLHttpRequest != undefined) { xhr = new XMLHttpRequest(); } else { / 兼容... 阅读全文
posted @ 2017-05-17 21:17 十六号街 阅读(215) 评论(0) 推荐(0) 编辑