转自:http://www.jb51.net/article/54247.htm
1.对象属性删除
function fun(){
this.name = 'mm';
}
var obj = new fun();
console.log(obj.name);//mm
delete obj.name;
console.log(obj.name); //undefined
2.删除不了原型链中的变量,如:
fun.prototype.age = 18;
delete obj.age;
console.log(obj.age) //18