摘要: 有两个方法,一个使用JS实现,一个是用iframe实现。首先是JS实现,废话就不多说了,上代码function createXMLHttpRequest(){ if(window.XMLHttpRequest){ XMLHttpR = new XMLHttpRequest(); }else if(window.ActiveXObject){ try{ XMLHttpR = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ ... 阅读全文
posted @ 2012-09-20 10:59 朱辉 阅读(45093) 评论(0) 推荐(1)