nick轩

导航

2011年4月16日 #

window.showModalDialog()方法在Chrome下不能使用的解决方法

摘要: 1、用window.open()替代其弹出窗口2、用getBrowserType() 判断当前浏览器是什么浏览器,并作出相应处理。function getBrowserType() { var ua = navigator.userAgent.toLowerCase(); if(ua.match(/msie ([\d.]+)/))return 1; if(ua.match(/firefox\/([\d.]+)/))return 2; if(ua.match(/chrome\/([\\d.]+)/))return 3; if(ua.match(/opera.([\d.]+)/))return 4 阅读全文

posted @ 2011-04-16 16:03 nick轩 阅读(5609) 评论(0) 推荐(0) 编辑