I have a fairly large codebase that depends on MooTools v1.11 and am about to convert to version 1.2. Since this is a pretty major overhaul, I've toyed with the idea of converting to jQuery.

我有一个相当大的代码库,依赖于MooTools v1.11,我即将转换为1.2版。由于这是一次非常重大的改革,我已经玩弄了转换为jQuery的想法。

Anyone have advice on whether to update to jQuery or just stick with MooTools?

任何人都有关于是否更新到jQuery或只是坚持使用MooTools的建议?

I mostly use MooTools for Ajax, drag and drop, and some minor effects.

我主要使用MooTools进行Ajax,拖放和一些小的效果。

16 个解决方案

#1


17

If you're upgrading anyway, then it may be worth looking into.

如果你正在升级,那么它可能值得研究。

jQuery seems to be well on its way to becoming the One True Javascript library (given that MS and others have decided to embrace it), so if this is code you intend to work on for a while, then it's probably a good idea to switch at some point (if only because there will be more places to get help and plugin code, as it's very likely to continue to be popular for a while, which will help ensure the long-term flexibility and maintainability of your code). So, given that you're having to convert it anyway, now might be the best time to do it.

jQuery似乎很好地成为了One True J​​avascript库(鉴于MS和其他人决定接受它),所以如果这是你打算工作一段时间的代码,那么切换可能是一个好主意在某些时候(如果只是因为有更多的地方可以获得帮助和插件代码,因为它很可能会继续流行一段时间,这将有助于确保代码的长期灵活性和可维护性)。所以,鉴于你无论如何都要转换它,现在可能是最好的时机。

I think jQuery becoming the framework to use is a good thing. It wouldn't have been my choice (I like MooTools, too), but it's certainly an excellent bit of code and definitely fits the purpose with at least the competence of its competition. I'm happy to see any kind of consistency, and I will be moving my code to jQuery at some point.

我认为jQuery成为使用的框架是一件好事。这不是我的选择(我也喜欢MooTools),但它肯定是一个很好的代码,绝对符合目的,至少具有竞争的能力。我很高兴看到任何一致性,我将在某些时候将代码移动到jQuery。

更多相关文章

  1. 试着在我的javascript代码中理解“this”(一件事有效,另一件没有)
  2. 代码点火-如何从控制器返回Json响应
  3. 小弟初学网页(javascript),看不懂下面的代码。但又要完成任务 各位
  4. 使用jquery在textarea中的颜色代码
  5. 为什么我的javascript/jquery代码不能像预期的那样工作?
  6. 实现浮动广告的代码
  7. 豆瓣Javascript代码风格规范
  8. 计算机视觉相关代码片段(Python)
  9. 120行python代码解锁10000分微信跳一跳

随机推荐

  1. Android UI LinearLayout权限级别与Table
  2. android滚动条
  3. android调用系统功能
  4. View的xml的属性作用大剖析
  5. TextView和EidtText使用技巧
  6. 《Android 应用 之路》 MPAndroidChart~B
  7. Android在全球的市场份额雄起
  8. Android ActionBar 作为导航条的一个Bug
  9. android TabHost小结
  10. Android EditText 限制输入数字和字母设