delete 删除对象属性
摘要:
1,对象属性删除 function fun(){ this.name = 'mm'; } var obj = new fun(); console.log(obj.name);//mm delete obj.name; console.log(obj.name); //undefined funct 阅读全文
posted @ 2016-10-31 16:42 波神 阅读(1362) 评论(0) 推荐(0) 编辑