首页 > Windows开发 > 详细

Uncaught TypeError: window.showModalDialog is not a function

时间:2019-06-10 20:40:22      阅读:767      评论:0      收藏:0      [点我收藏+]
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); 
} }

把这段代码加入控制台中

Uncaught TypeError: window.showModalDialog is not a function

原文:https://www.cnblogs.com/godoforange/p/10999926.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!