- UID
- 288217
- 帖子
- 3
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2010-6-21
|
[提交Bug] [BUG反馈] try 处理windows.external异常时无反应
js try 处理windows.external异常时无反应,IE下访问正常
发现问题脚本:
function adialog(url) {
var randtime = new Date();
if(url.indexOf('?')<0)
url += '?';
else
url += '&';
if(url.substr(0,4)!='http'){
var a = self.location.href.split('?')[0].split('/');
a[a.length-1] = url; url = a.join('/');
}
var s = 'dialogWidth:800px;dialogHeight:600px;scroll:no;menubar:0;status:0;';
if(window.external!=null){
try{return window.external.show_dialog(url+randtime,800,600);}catch(e){return window.showModalDialog(url+randtime, '', s);}
}else{
return window.showModalDialog(url+randtime, '', s);
}
} |
|