js清除object

js清除object

删除对象,直接使用delete就可以了。比如:delete document.getElementById('div')删除一个属性的过程也很简单,就是将其置为undefined:user.name=undefinedu
JavaScript140