摘要: var xhr; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xhr=new XMLHttpRequest(); } else {// code for IE6, IE5 xhr=new A 阅读全文
posted @ 2020-11-05 23:20 轩辕吊雷 阅读(68) 评论(0) 推荐(0) 编辑
摘要: // 1.创建一个异步对象 var xmlhttp=new XMLHttpRequest(); // 2.设置请求方式和请求地址 /* method:请求的类型;GET 或 POST url:文件在服务器上的位置 async:true(异步)或 false(同步) */ xmlhttp.open(" 阅读全文
posted @ 2020-11-05 23:19 轩辕吊雷 阅读(231) 评论(0) 推荐(0) 编辑