摘要:
Object.keys() 取得对象中所有可枚举的属性function Person(){}Person.prototype.name="summer";Person.prototype.age=20;Person.prototype.job="enginner";Person.prototype. 阅读全文
posted @ 2016-08-30 10:19
指间细碎流年
阅读(329)
评论(0)
推荐(0)
摘要:
// in有两种用法,一种是使用在for-in循环中,一种是单独使用。单独使用时,in操作符会在对象可以访问给定属性时返回true function Person(){ } Person.prototype.name="summer"; Person.prototype.age=20; Person 阅读全文
posted @ 2016-08-30 09:43
指间细碎流年
阅读(128)
评论(0)
推荐(0)
浙公网安备 33010602011771号