打开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(); },