Removing an object by key inside another object
This question already has an answer here:
You can use delete
operartor:
delete myMainObj['subObjB'];
or
delete myMainObj.subObjB;
你需要使用删除操作符:
delete myMainObj.subObjB;
链接地址: http://www.djcxy.com/p/4676.html
上一篇: 值对从一个对象?
下一篇: 通过另一个对象内的键移除对象