![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
人到30
这个作者很懒,什么都没留下…
展开
-
JavaScript trim()方法IE8不兼容问题解决方法
//ie8 trim方法不兼容解决方法String.prototype.trim = function(){ return this.replace(/^\s\s*/,'').replace(/\s\s*$/,'');}转载 2018-10-22 09:04:46 · 601 阅读 · 0 评论 -
JavaScript indexOf()方法IE8不兼容问题解决方法
//兼容IE8 indexOfif(!Array.prototype.indexOf){Array.prototype.indexOf = function(elt){var len = this.length >>> 0;var from = Number(aguments[1]) || 0;from = (from < 0) ? Math.ceil(from)...转载 2018-10-22 09:08:16 · 1488 阅读 · 0 评论 -
JavaScript 兼容IE8默认非自然排序的解决方法
var epcArray = new Array();epcArray[0] = "11100100101AA018C8000002";epcArray[1] = "11100100101AA018C8000001";epcArray[2] = "11100100101AA018C8000004";epcArray[3] = "11100100101AA018C8000006";epcA...原创 2018-10-22 09:12:37 · 620 阅读 · 0 评论