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); 
} }

把这段代码加入控制台中

Uncaught TypeError: window.showModalDialog is not a function

上一篇:第十五节——解决${pageContext.request.contextPath}没有转化问题


下一篇:一个php开发的用于路由器的小功能