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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

jQuery Is Seriously Underrated

20 点作者 rizs124 个月前
The mainstream opinion seems to be that jQuery is outdated because vanilla JavaScript can work uniformally across virtually all modern browsers.<p>But I&#x27;ve been playing around with jQuery for the first time and wow - it&#x27;s much more enjoyable to work with than vanilla JavaScript is.<p>Granted I don&#x27;t work with JavaScript professionally (I use Java at work) so I might be overlooking jQuery cons that only become apparent in large professional codebases.

5 条评论

legitster4 个月前
&gt; jQuery is used by 93.4% of all the websites whose JavaScript library we know.<p><a href="https:&#x2F;&#x2F;w3techs.com&#x2F;technologies&#x2F;details&#x2F;js-jquery" rel="nofollow">https:&#x2F;&#x2F;w3techs.com&#x2F;technologies&#x2F;details&#x2F;js-jquery</a><p>Maybe jQuery is seen as outdated in the backend world, but I can assure you that in the webdev world jQuery and Javascript are almost entirely synonymous.<p>Someone might try to say that hammers are outdated in a world where a nailgun exists, but I can assure you the hardware store sells a lot more hammers than they do nailguns. (In this analogy jQuery would be a hammer and vanilla javascript would be pounding in nails with a big dumb rock).
评论 #42859864 未加载
评论 #42858578 未加载
andrewfromx4 个月前
Modern frontend frameworks like React, Vue, and Angular provide their own state management and DOM manipulation approaches that are more efficient than jQuery&#x27;s direct DOM manipulation
评论 #42906325 未加载
评论 #42859575 未加载
dlcarrier4 个月前
At one point, jQuery was so overrated that when I searched Google for JavaScript alert syntax, it came up with a similar StackOverflow question, where the top answer used jQuery to call it.<p>There were other responses to the StackOverflow question, which managed to call an alert with just the single method call, but the top answer loaded in the entire jQuery library, to place a single native call.
sandreas4 个月前
In the old days (TM) jquery made things easy and cross platform (all browsers). It could literally take any parameter (string, array, function, ...) and mostly did magically what the dev expected. It is very intuitive and productive. For small(ish) things this is great and saves time and money.<p>However, this came at a cost: performance<p>Usually user experience is more important than developer experience at a certain breakpoint. As long as everything feels snappy, jquery is OK, but as soons as the APP starts getting slower, you just can&#x27;t get along.<p>I&#x27;m not saying jQuery is slow in General but some things are (Dom, eventhandling) slower than native stuff and this sums up. Not to talk about highly optimized &quot;Compile time&quot; libs like svelte.
codegeek4 个月前
jQuery is the WordPress of Javascript. It will never go away no matter what anyone says.
评论 #42877043 未加载