紫色:可枚举方法/属性(enumerable properties),浅紫色:不可枚举方法/属性(non-enumerable properties),所有内置属性(built-in methods)都是不可枚举的获取全部属性可用:Object.getOwnPropertyNames(o)获取继承属性需要遵循原型链stackoverflow相关问题:Why are some scope variables in Chrome Dev Tools greyed out (light purple)?What does light purple mean in Chrome's console?
紫色:可枚举方法/属性(enumerable properties),
浅紫色:不可枚举方法/属性(non-enumerable properties),所有内置属性(built-in methods)都是不可枚举的
获取全部属性可用:Object.getOwnPropertyNames(o)
获取继承属性需要遵循原型链
stackoverflow相关问题:
Why are some scope variables in Chrome Dev Tools greyed out (light purple)?
What does light purple mean in Chrome's console?