<script>
let obj = { name: 'lili', age: 10, gender: 'man' }
delete obj.name//删除对象属性
console.log(obj);
</script>
删除对象属性
最新推荐文章于 2023-07-25 16:00:28 发布
<script>
let obj = { name: 'lili', age: 10, gender: 'man' }
delete obj.name//删除对象属性
console.log(obj);
</script>