最佳答案
做这两件事有什么实质性的区别吗?
delete a.x;
对
a.x = undefined;
哪里
a = {
x: 'boo'
};
可以说它们是等价的吗?
(我没有考虑像 “ V8不喜欢使用 delete更好”这样的东西)