javascript------>delete

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

 

1 var a = "roboce";
2 delete a; // false
3 a;
4 
5 
6 b = "haha";
7 delete b; // true
8 b;          // window.b;

 

posted @ 2014-10-06 01:36  daishuguang  阅读(115)  评论(0编辑  收藏  举报