What techniques can be used to define a class in JavaScript, and what are their trade-offs?

后端 未结 19 1494
庸人自扰
庸人自扰 2020-11-22 07:26

I prefer to use OOP in large scale projects like the one I\'m working on right now. I need to create several classes in JavaScript but, if I\'m not mistaken, there are at le

19条回答
  •  灰色年华
    2020-11-22 07:48

    MooTools (My Object Oriented Tools) is centered on the idea of classes. You can even extend and implement with inheritance.

    When mastered, it makes for ridiculously reusable, powerful javascript.

提交回复
热议问题