js 基於哈希表、原型鏈、做用域、屬性類型可配置的多範式編程語言php
值類型、引用類型、直接賦值;html
原型是以對象形式存在的類型信息。編程
ECMA-262把對象定義爲:無序屬性的集合,其屬性能夠包含基本值,對象或者函數。因此js中對象就是一組鍵值對。編程語言
https://www.cnblogs.com/starof/p/4162354.html函數
Delegation[edit]ui
In prototype-based languages that use delegation, the language runtime is capable of dispatching the correct method or finding the right piece of data simply by following a series of delegation pointers (from object to its prototype) until a match is found. All that is required to establish this behavior-sharing between objects is the delegation pointer. Unlike the relationship between class and instance in class-based object-oriented languages, the relationship between the prototype and its offshoots does not require that the child object have a memory or structural similarity to the prototype beyond this link. As such, the child object can continue to be modified and amended over time without rearranging the structure of its associated prototype as in class-based systems. It is also important to note that not only data, but also methods can be added or changed. For this reason, some prototype-based languages refer to both data and methods as "slots" or "members".[citation needed]this
https://www.cnblogs.com/feng9exe/p/8289967.htmlspa