let obj = {
name: '小明',
age: 19
}
delete obj.name//obj = {age: 19}
JS对象删除某属性及值
最新推荐文章于 2024-10-06 17:37:01 发布
let obj = {
name: '小明',
age: 19
}
delete obj.name//obj = {age: 19}