OO JQuery and classes

前端 未结 8 899
一个人的身影
一个人的身影 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 13:53

    The question is... Why are you moving away from MooTools is it fits your needs? Seems to me like MooTools was working fine, and there is nothing jQuery does that MooTools can't do. (The opposite isn't true).

    Unfortunately, jQuery is not built to support classical OOP as MooTools is so you will need to write your Classes as jQuery plugins.

提交回复
热议问题