2016-05-17 222 views
-3

我有這樣的對象:如何從對象中刪除屬性?

{"wordFormId":"abandon", 
    "wordFormIdentity":1, 
    "ascii":97, 
    "wordId":"abandon", 
    "primary":true, 
    "posId":2} 

我如何刪除ASCII財產?我知道我可以將它設置爲空,但我認爲它仍然會在那裏。我想要做的是徹底刪除它。

回答

1

this question

delete myObject.ascii; 
// or, 
delete myObject['ascii']; 
相關問題