判断对象中是否包含某个属性

obj.hasOwnProperty('xxx')

前端怎么学的会~
原文地址:https://www.cnblogs.com/hope192168/p/12510785.html