简体   繁体   English

获取Internet Explorer的完整版本号

[英]Getting full version numbers for internet explorer

是否可以获取Internet Explorer的完整版本号,即打开“关于”窗口时看到的版本号?

The IE11 user agent string reports the version of the browser with a revision ("rv") token. IE11用户代理字符串报告带有修订(“ rv”)令牌的浏览器版本。

var isIE11 = (navigator.userAgent.indexOf("rv:11.0") != -1);

I personally tested this over jsfiddle with IE11 and this code works 我用IE11在jsfiddle上对此进行了亲自测试,此代码有效

More details of the IE user agents here in MSDN: IE用户代理的更多详细信息,请参见MSDN:

https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx https://msdn.microsoft.com/zh-CN/library/ms537503(v=vs.85).aspx

https://msdn.microsoft.com/en-us/library/bg182625(v=vs.85).aspx https://msdn.microsoft.com/zh-CN/library/bg182625(v=vs.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM