📜  js 从对象中删除键 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:22.310000             🧑  作者: Mango

代码示例6
// Example 1
var key = "Cow";
delete thisIsObject[key]; 

// Example 2
delete thisIsObject["Cow"];

// Example 3
delete thisIsObject.Cow;