判断某个属性是否存在于某个对象中,可以通过in运算符,hasOwnPreperty()和propertyIsEnumerable(). var o={x:1} "x"in o; "y"in o; "soString"in o;