Objects
JavaScript is fundamentally about objects. Arrays are objects. Functions are objects. Objects are objects. So what are objects? Objects are collections of name-value pairs. The names are strings, and the values are strings, numbers, booleans, and objects (including arrays and functions). Objects are usually implemented as hashtables so values can be retrieved quickly.
Object类具有下列属性:
Constructor对创建对象的函数的引用(指针)。对于Object类,该指针指向原始的object()函数。
Prototype对该对象的对象原型的引用。对于所有的类,它默认返回Object对象的一个实例。
本文介绍了JavaScript中的对象概念,解释了对象作为键值对集合的本质,并详细讨论了对象的属性,包括构造函数和原型引用。
5634

被折叠的 条评论
为什么被折叠?



