1、ES6判断数组是否存在重复元素 let arr = [1, 2, 3, 4, 5, 2, 3]; if ((new Set(arr)).size != arr.length) { console.log('数组有重复值'
let userInfoLS=[ {id:1,name:'aaa'}, {id:2,name:'bbb'}, {id:3,name:'ccc'}, {id:2,name:'ddd
CMS网站 调用 新站 php语法 帝国 es6语法 关键词排名 栏目 模板 织梦 jquery id 新站seo SEO优化 wordpress函数 标签 wordpress技巧 php入门 mysql语法 dedecms建站