用于判断对象身上是否有某一个属性 例: function(){ if(todo.hasOwnProperty('isEdit'))//如果todo对象身上有isEdit属性 todo.isEdit==true }