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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Do you still use jQuery?

3 点作者 fakeyguy将近 5 年前
JS-land has typically been moving from one framework to the next. However, are any of you still using jQuery? If so what issues do you face and what are the advantages?

4 条评论

datalist将近 5 年前
I recently migrated a personal project to a newer version of a library it is using and that version dropped its jQuery requirement. In that process I also rewrote my own code using jQuery and moved to vanilla JavaScript.<p>A lot, that required or semi-required jQuery before can now be done with vanilla JavaScript, however jQuery is still going strong with invoking code on sets of elements as well as cascading calls.<p>jQuery has been a fantastic library and deserves all the praise, however a lot of its functionality has made it by now into the language itself.<p>To answer your direct questions, I couldnt think of any &quot;issues&quot;, at worst you download an additional 30 kilobytes (gzipped) but with today&#x27;s mentality of megabytes and megabytes for websites, that really shouldnt matter much. As for advantages, as mentioned, JavaScript did take over a lot of functionality, but as direct advantages I&#x27;d consider aforementioned features. Additionally, there certainly is also still a lot of libraries&#x2F;plugins which depend on jQuery.
评论 #23209715 未加载
GrumpyNl将近 5 年前
Working with jQuery for years and i love it. Very simple an fast. Done some things in react and angular, went back to jQuery.
nana-将近 5 年前
jQuery is universal . No issues, its clear and concise code working on every browser.<p>Understandable code as one programs the controller logic entirely and exposes it without magical hidden behaviour nor framework version dependency.<p>With no framework caveats nor non-intuitive behaviour to lookup in obfuscated documentation.
aww_dang将近 5 年前
I don&#x27;t like the size of it, but it is a comfort zone and a dependency of bootstrap.
评论 #23202220 未加载
评论 #23202214 未加载