删除对象的某一属性

 for (let item in list) {
if (item== 'id') {
delete item
}

删除list对象内的  id属性

猜你喜欢

转载自www.cnblogs.com/webzzc/p/12194897.html
今日推荐