我有一个对象,我试图从传递给元素的cssProperty中移除。我已经尝试了几件事情,但没有运气,我很茫然。从对象中删除值
物体看起来像
Object {background-color: "#91eae8"}
,我已经试过像
delete this.cssProps.background-color;
delete this.cssProps[background-color];
delete this.cssProps['background-color'];
既不删除它一直并抛出视图模型错误,因为它不知道我在做什么。我无法改变对象是如何引用它或类似的东西的。
是一个,那只是我想什么都 – zazvorniki
你不是说'删除this.cssProps [“背景色”];'? –
有没有这样的运营商'删除'在js使用'删除' –