博主首页

js集合删除、js删除集合

    deleteById:function(id){
       this.checkList.forEach(function (itme,index,array) {
            if(itme.id===id){
              array.splice(index,1);
            }

       })
    },

 

posted @ 2020-07-07 15:51  笑~笑  阅读(2876)  评论(0编辑  收藏  举报