摘要:有两个方法,一个使用JS实现,一个是用iframe实现。首先是JS实现,废话就不多说了,上代码function createXMLHttpRequest(){ if(window.XMLHttpRequest){ XMLHttpR = new XMLHttpRequest(); }else if(window.ActiveXObject){ try{ XMLHttpR = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ ...
阅读全文