如何将原生JavaScript异步请求改写为长尾?
- 内容介绍
- 文章标签
- 相关推荐
本文共计36个文字,预计阅读时间需要1分钟。
javascriptmyhttp.js封装异步请求var http={ xmlHttp: null, createNew: function() { var http={}; if (window.XMLHttpRequest) { http.xmlHttp=new XMLHttpRequest(); } }}
myxxx.comtest'; myhttp.sendAsynchronRequest(url,'test=0001',function(){ var result=myhttp.GetRequestData(); if(result){ console.log(result); } });本文共计36个文字,预计阅读时间需要1分钟。
javascriptmyhttp.js封装异步请求var http={ xmlHttp: null, createNew: function() { var http={}; if (window.XMLHttpRequest) { http.xmlHttp=new XMLHttpRequest(); } }}
myxxx.comtest'; myhttp.sendAsynchronRequest(url,'test=0001',function(){ var result=myhttp.GetRequestData(); if(result){ console.log(result); } });
