Uncaught TypeError: window.showModalDialog is not a function 谷歌
来源:互联网 发布:手机查淘宝消费总金额 编辑:程序博客网 时间:2024/05/17 20:42
//新版本谷歌没有window.showModalDialog,创建一个window.open
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);
}
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);
}
}
在使用回调的时候
var parent;
//谷歌的情况下
if (window.opener != undefined) {
parent=window.opener;
}
else {
parent=window.dialogArguments;
}
只要当谷歌浏览器使用window.showModalDialog未定义的时候
阅读全文
0 0
- Uncaught TypeError: window.showModalDialog is not a function 谷歌
- Uncaught TypeError: window.showModalDialog is not a function 谷歌
- Uncaught TypeError: window.showModalDialog is not a function
- window.showModalDialog 在谷歌Uncaught TypeError: undefined is not a function
- Uncaught TypeError: window.showModalDialog is not a function chrome 谷歌浏览器
- Uncaught TypeError: window.jsObj.closeWebView is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: string is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: undefined is not a function
- Uncaught TypeError: object is not a function
- Uncaught TypeError: boolean is not a function
- Uncaught TypeError: $(...).appendChild is not a function
- Uncaught TypeError: sum is not a function
- Uncaught TypeError: search is not a function
- Uncaught TypeError: $(...).Validform is not a function
- Uncaught TypeError: $(...).on is not a function
- Java并发编程:Lock
- 递归的理解
- OpenCV之通道和位深的理解(CV_8UC1,CV_8SC1,CV_32FC1)
- 环境搭建(jdk+tomcat+maven+svn)
- JAVASE jar打开后闪退 ---Win7
- Uncaught TypeError: window.showModalDialog is not a function 谷歌
- IOS App 启动优化
- Android Studio 自动生成 serialVersionUID
- java 实现递归实现tree
- linux与Windows共享文件samba
- 达内课程-面向对象之构造方法和重载
- Java 类图(UML)
- 复习一下快速排序(带非递归)
- Vim光标移动命令