Uncaught TypeError: window.showModalDialog is not a function

if(window.showModalDialog == undefined){ window.showModalDialog = function(url,mixedVar,features){ 
window.hasOpenWindow = true; 
if(mixedVar) var mixedVar = mixedVar; 
if(features) var features = features.replace(/(dialog)|(px)/ig,"").replace(/;/g,',').replace(/\:/g,"="); 
window.myNewWindow = window.open(url,"_blank",features); 
} }

把这段代码加入控制台中

posted @ 2019-06-10 20:11  秃桔子  阅读(4476)  评论(0)    收藏  举报

如果您有编程方面或者学术方面的需求请在微信公众号搜索

桔子科研


或者识别下方二维码,第一时间获取编程有趣的知识和最新科研学术成果。