资讯
Actually, JavaScript uses a different approach than C# or C++ to create an object-oriented language. It is a prototype-based language.
Such prototypal inheritance can effectively mimic class-based inheritance, without creating classes, in more than one way. See Dean Edwards’ base2, qooxdoo, Prototype for a few implementations.
This makes lots of sense after you peruse a list of languages that use prototypal inheritance. With the exception of JavaScript, prototypal inheritance is not part of any mainstream language.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果