JS 自定义数组方法

(function(){ //判断数组是否有重复项(若是数字字符串相似相同,返回的仍是真,有点不靠谱) /*Array.prototype.isItemRepeat = function(){ return /(\x0f[^\x0f]+)\x0f[\s\S]*\1/.test("\x0f"+ this.join("\x0f\x0f") + "\x0f"); }*/ //方法一: Array
相关文章
相关标签/搜索