OO JQuery and classes

前端 未结 8 972
一个人的身影
一个人的身影 2020-12-24 13:35

I\'m working on a site and using JQuery for essentially the first time. I\'ve mostly used MooTools for previous projects, and I have a few widget classes I\'ve written usin

8条回答
  •  忘掉有多难
    2020-12-24 14:07

    There are third party javascript class implementations that provide very powerful introspection capabilites. I would like to particularly highlight JS.Class and Joose. While JS.Class is modeled after Ruby, Joose is modeled after Moose. I am not a mootools user so I can not comment on their advantages/disadvantages with respect to mootools. But I would summarize their key features.

    JS.Class has a strong focus on simulating the Object oriented features of Ruby and does a pretty good job at that. It provides a powerful library modeled after the standard library of Ruby and also comes with a well integrated package management and testing framework.

    Joose, while provides no testing framework/package management facilites, excels in terms of advanced attribute management facilities, filters and better introspection facilities.

    Both of them have really good documentation and can be used in browser as well as server.

提交回复
热议问题