我应该从MooTools转换为jQuery吗? [英] Should I convert from MooTools to jQuery?

查看:136
本文介绍了我应该从MooTools转换为jQuery吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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

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

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

推荐答案

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

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

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

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

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.

这篇关于我应该从MooTools转换为jQuery吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆