提交 793e53c6 编写于 作者: C Catouse

* updated browser.js.

上级 0cebbce6
......@@ -69,10 +69,17 @@
// Detect it is IE, can given a version
Browser.prototype.isIE = function(version)
{
// var ie = /*@cc_on !@*/false;
var b = document.createElement('b');
b.innerHTML = '<!--[if IE ' + (version || '') + ']><i></i><![endif]-->';
return b.getElementsByTagName('i').length === 1;
}
};
// Detect ie 10 with hack
Browser.prototype.isIE10 = function()
{
return (/*@cc_on!@*/false);
};
window.browser = new Browser();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册