phpwind v7.5无法在IE9下注册

打开js/pw_ajax.js,找到以下代码:

load : function() {   
if (is_ie) {   
ajax.request.responseText = (typeof ajax.request.iframe.contentWindow.document.XMLDocument != 'undefined') ? ajax.request.iframe.contentWindow.document.XMLDocument.text : null;   
ajax.request.iframe.detachEvent('onload',ajax.load);   
} else {   
ajax.request.responseText = ajax.request.iframe.contentWindow.document.documentElement.firstChild.nodeValue;   
ajax.request.iframe.removeEventListener('load',ajax.load,true);   
}   
try{if (self.ajaxiframe.location.href == 'about:blank'){return '';}}catch(e){}   
if (typeof(ajax.recall) == 'function') {   
ajax.recall();   
}   
},

替换成如下代码即可:

load : function() {   
if(!ajax.request.iframe.contentWindow){    
return false;    
}    
var _innerText=ajax.request.iframe.contentWindow.document.documentElement.innerText;    
var _textContent=ajax.request.iframe.contentWindow.document.documentElement.textContent;    
  
if(_innerText=="undefined"||_textContent=="undefined"){    
return false;    
}    
if(-[1,]){    
ajax.request.responseText=_textContent;    
}else{    
var txt = ajax.request.iframe.contentWindow.document.documentElement.innerText;    
var rules = /<!\[CDATA\[([\s\S]+)\]\]>/.exec(txt);    
if(rules && rules[1]){    
ajax.request.responseText=rules[1].replace(/^\s+|\s+$/g,'');    
}else{    
ajax.request.responseText=_innerText;    
}    
}    
  
if (ajax.request.iframe.detachEvent) {    
ajax.request.iframe.detachEvent('onload',ajax.load);    
} else {    
ajax.request.iframe.removeEventListener('load',ajax.load,true);    
}    
//try{if (ajax.request.iframe.location.href == 'about:blank'){return '';}}catch(e){}    
if (typeof(ajax.recall) == 'function') {    
ajax.recall();    
ajax.doscript();    
}    
//fixed for tt browser (register page)    
if (typeof ajaxclearhistory == 'undefined')ajax.request.clearhistroy();    
},
本文链接:https://www.moyan.net.cn/study/331.html
本文标题:phpwind v7.5无法在IE9下注册
本文声明:如无特殊说明,您可以自由转载本文,但需标注转载自莫言斋(https://www.moyan.net.cn/)。本站部分文章信息来源于互联网及公开渠道,如侵犯到您的权益,请及时联系我们(94372#qq.com)处理!
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇