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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Should I Pick jQuery?

13 点作者 _getify超过 11 年前

5 条评论

mkaziz超过 11 年前
Just use it. There's no reason not to - it's fairly lightweight, and even if you don't "need" it on this project, you might on the next. Better to stay familiar with it instead of mucking around with bare javascript.
评论 #7157828 未加载
评论 #7157854 未加载
评论 #7157975 未加载
评论 #7157842 未加载
jeena超过 11 年前
I only use jQuery on Websites, mostly because it comes bundled with Rails. But most of my JavaScript code runs either in specific WebViews, on the server or special OSes like Firefox OS. Especially on mobile I found that jQuery (mobile) slows down everything significantly.
quarterto超过 11 年前
Let's face it, the developer is probably already using jQuery, so why not just depend on it?
评论 #7157949 未加载
rwaldron超过 11 年前
Everyone loves a bit of HN-google-twitter juice for publishing some controversial anti-jQuery diatribe.<p><i>yawn</i>
jsnk超过 11 年前
Reasons to use jquery<p>- Other devs in the team are using it<p>- Unless it&#x27;s a small pet project, you will probably need it down the road even if you don&#x27;t need it now<p>- Minified jquery is like 32kb. That means literally nothing in modern web. Unless you are from 1995 using 2G connection, this doesn&#x27;t matter.<p>- Modern browsers are good. It&#x27;s going to handle jquery like a champ. Don&#x27;t worry.<p>- jQuery code is probably better than yours.<p>- Lots of 3rd party libraries have jquery as a dependancy.<p>Reasons not to use jquery and use just javascript<p>- Want to learn javascript<p>- Writing a library or framework and you don&#x27;t want jquery dependancy<p>- Working on a very small website
评论 #7158024 未加载