在代码:function createXHR(){ if(typeof XMLHttpRequest !="undefined"){ return new XMLHttpRequest(); }else if(typeof ActiveXObject !="undefined"){ if(typeof arguments.callee.activeXString !="string"){ var versions = ["MSXML2.XMLHttp.6.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp"]; var i,len; for (i=0,len=versions.length;i<len;i++){ try{ new ActiveXObject(versions[i]); arguments.callee.activeXString = versions[i]; break;}catch(ex){}}}return new ActiveXObject(arguments.callee.activeXString);}else{throw new Error("No XHR object available");}}在上述代码中activeXString是什么呢
1 回答
拉莫斯之舞
TA贡献1820条经验 获得超10个赞
function Foo() {
// do something;// arguments.callee.activeXString === 'foo';
};
Foo.activeXString = 'foo';
添加回答
举报
0/150
提交
取消