随笔分类 -  IE

摘要:IE8不支持substr()函数, 第一个参数为负数,比如:var index = id.substr(-1, 1);替代:var index = id.substr(id.length-1, 1); 阅读全文
posted @ 2016-04-13 17:45 roseforyou 阅读(256) 评论(0) 推荐(0)
摘要:原文地址: http://julying.com/blog/determine-the-version-number-of-ie-with-javascript/ 在原文基础上改进了一下.但有人反映在IE11下返回false! 阅读全文
posted @ 2016-04-13 17:17 roseforyou 阅读(138) 评论(0) 推荐(0)