★★★ 检查应用程序的版本号 ★★★

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 net_lover 的 blog

检查应用程序的版本号


internet explorer 6 提供了一种检测所支持的应用程序某种版本号的方法;比如:应用程序可以是 xml,html,dom.版本号是一些小数,如: 1.0, 2.0,或者3.0等。下面就是检测的用法:
document.implementation.hasfeature(应用程序名字, 版本号);
例子:

document.implementation.hasfeature("dom", "1.0");
或者:

document.implementation.hasfeature("xml", "2.0");
如果你运行的是ie6,你可以点击进行检测:"dom" 1.0? "html" 1.0? "xml" 1.0? "html 3.0?
然而,由于一些莫名的原因,internet explorer 6 不能够报告检测到支持 dom 1.0 和 html 3.0 的情况!!!

本文关键:Internet Explorer 6,DOM.XML,HTML
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top