js- 判断属性是否 属于该对象 hasOwnProperty()
var obj ={
name:'suan',
sex :'male',
age:150,
height:185,
characeter:true,
_proto_:{
lastName:'susan',
_proto:{
lastSex:'male'
}
}
}
for(var key in obj){
if (obj.hasOwnProperty(key)){
console.log(obj[key])
}
}