首页 > 代码库 > javascript------>delete

javascript------>delete

delete只能删除属性,不能删除变量

 

1 var a = "roboce";2 delete a; // false3 a;4 5 6 b = "haha";7 delete b; // true8 b;          // window.b;

 

javascript------>delete