作者:LAMP小白 点击:1684 发布日期:2012-11-06 16:31:00 返回列表
有了他就不用在奇葩浏览器中为获取不到对象发愁了
function thisMovie(movieName) { if (window.document[movieName]){ return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet")==-1){ if ($.browser.version mio_gt;= 9) { return window[movieName][0]; } if (document.embeds mio_amp;mio_amp; document.embeds[movieName]){ return document.embeds[movieName]; } else { return document.getElementById(movieName); } } }
上一篇:事务问题的非事务解决方案 下一篇:快递查询API