TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Jquery or mootools?

5 点作者 bizodo大约 13 年前

5 条评论

pestaa大约 13 年前
I tried to ditch jQuery a couple of times, but always coming back. The reasons I dislike it:<p><pre><code> * Stupid API. * Stupid API changes. * Stupid API documentation. * Plugins are minefield. </code></pre> The recent standardization of event handler attachments (see `.on`) is a lot saner than it used to be, but I believe it is still not there where it should be. (I don't know that place, otherwise I'd have written my own library.)<p>However, the jQuery ecosystem is hard to leave because<p><pre><code> * Monopoly in terms of plugins, * Already cached everywhere (from Google CDN), * Solves all cross-platform issues. </code></pre> There are a few other bits like the culture of short commands because of chained functions, but I personally find that a very minor detail.<p>I also happen to like the author's ongoing experiments with performance improvements.
emehrkay大约 13 年前
MooTools makes more sense to me when you actually compare the two apis. If you're a JavaScript fan, MooTools is truer to the language.<p>Check out <a href="http://jqueryvsmootools.com" rel="nofollow">http://jqueryvsmootools.com</a>
debacle大约 13 年前
jQuery is a DOM wrapper. MooTools is a JavaScript "extension." (Note the quotes and please don't crucify me)<p>What that basically means is that jQuery makes working with the DOM tolerable and MooTools makes working with JavaScript tolerable. I, personally, have issues with the DOM but no issues with JavaScript, so I opt for jQuery.
paulhauggis大约 13 年前
Jquery.<p>In my experience, much more support, plugins, and it's been battle tested pretty well.
peteypao大约 13 年前
jQuery is clearly the one being adopted the most. (Something like 90%, at least from what I've heard on a podcast). Why mess with success?