数组去重

1)用findInArray,把结果放到新数组

2)和下一项比,如果重复就splice删除,i--

3)利用json的name不重复的特性

posted @ 2017-08-09 09:20  程爱英  阅读(51)  评论(0编辑  收藏  举报