技术碎片
技术记录
帮助交流
JS数组去重方法
students = ['a','b','a','c','b'];
for(let w = 0;w < students.length;w++){
for(let j = w+1;j < students.length;j++){
if(students[w]['content'] === students[j]['content']){
++w;
}
}
this.students_title.push(students[w]['content'])
}
推荐此方法
转载请注明来源地址:www.zhyunxuan.com>
更新时间 2021-10-25
 1846
梦想有多远,路就有多远