摘要: var data = {id:123,no:145,name:6878,suffix:null}; var id = "0,1"; id = id.split(","); var i = 0; for (var n in data) { if (id.indexOf(i.toString())!=-1) delete data[n]; i++; } console.log(data); 阅读全文
posted @ 2019-09-17 17:17 宝2333 阅读(269) 评论(0) 推荐(0) 编辑