标签:io sp on cti amp as type return function
function hasPrototypeProterty(obj, name){
return !obj.hasOwnProperty(name) && (name in obj)
}
name in obj //判断是否有这个属性,不管存在于实例还是原型中
obj.hasOwnProperty(name) //如果存在于原型中返回false
判断属性是否是原型属性hasPrototypeProterty
标签:io sp on cti amp as type return function
原文地址:http://www.cnblogs.com/mzbdadou/p/4037321.html