简体   繁体   English

如何检测IE“更新版本”

[英]How to detect IE “Update Versions”

After IE was updated to Update Versions 11.0.35, the timings of "keydown" event and DOM mutation were changed when Hangul is edited in content editable blocks. 在IE更新到更新版本11.0.35之后,在内容可编辑块中编辑韩文时,“ keydown”事件和DOM突变的时间发生了变化。

How can I detect IE Update Versions in Javascript? 如何检测Javascript中的IE更新版本?

(IE ScriptEngineMajor/Minor/BuildVersion functions are not useful because it is different even in case of same "Update Versions") (IE ScriptEngineMajor / Minor / BuildVersion函数没有用,因为即使在相同的“更新版本”的情况下它也有所不同)

Internet Explorer Information (Korean ver.) Internet Explorer信息(韩文版)

function getInternetExplorerVersion()
// Returns the version of Windows Internet Explorer or a -1
// (indicating the use of another browser).
{
    var rv = -1; // Return value assumes failure.
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}

function checkIEVersion() {
    var msg = "You're not using Windows Internet Explorer.";
    var ver = getInternetExplorerVersion();
    if (ver > -1) {
        console.log(ver);
    }
}

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

相关问题 是否可以使用Javascript检测所有版本的IE? 怎么样? - Is it possible to detect all versions of IE with Javascript? How? 设置IE8兼容性时如何检测IE8与较新版本的区别 - How to detect IE8 separate from newer versions when IE8 compatibility set 如何通过用户代理字符串检测IE7,省略以怪异模式运行的较新IE版本 - How to detect IE7 by the user agent string, leaving out newer IE versions running in quirks mode 如何在使用JavaScript的非IE浏览器中检测高于8的Adobe Acrobat版本之间的差异 - How do I detect the difference between Adobe Acrobat versions higher than 8 in non-IE browsers with JavaScript 如何检测特定版本的浏览器 - how to detect specific versions of browser 如何检测IE版本 - How to detect the version of IE 检测早期版本的ie,即使用less.js,然后使用过滤器? - detect older versions of ie using less.js and then use filter? 检测IE设置:“从不”检查存储页面的较新版本 - Detect IE setting: check for newer versions of stored pages “never” 如何为不同版本的IE加载不同的脚本? - How to load different scripts for different versions of IE? 如何用javascript检测IE6? - How detect IE6 with javascript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM