假设我创建一个对象如下: var myObject = { "ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*" }; 如何删除财产regex以最终结束新的最佳方式myObject如下? var myObject = { "ircEvent": "PRIVMSG", "method": "newURI" }; 喜欢这个: delete myObject.regex; // or, delete myObject['regex']; // or, var prop = "regex"; delete myObject[prop]; 演示 var myObject = { "ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*" }; delete myObject.regex; console.log(myObject); 操作员delete出乎意料地很慢! 看看基准。 删除是删除对象的属性没有任何剩菜剩下的唯一真正的方法,但它的工作比其“替代”设置慢100倍object[key]