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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JQuery now runs on every second website

65 点作者 MarionG将近 13 年前

11 条评论

postfuturist将近 13 年前
Ingredients for success: Solve a common set of problems (browser incompatibilities, ugly API) with a simple, concise interface that maps well to the domain ($(CSS_selector).action(params)) and release under a liberal open source license (MIT). Another library that follows this pattern would be Requests (python).
nthitz将近 13 年前
Wow, impressive. Let's hope the jQuery sources and CDNs never get compromised!
评论 #4376255 未加载
评论 #4377063 未加载
评论 #4376646 未加载
评论 #4376205 未加载
评论 #4377030 未加载
Pherdnut将近 13 年前
This is a trend that may actually reverse in the next couple of years. JQuery's popularity has inspired a lot of new DOM API methods now present in modern browsers which are starting to make it somewhat redundant. Once IE8 is out of your support picture the major DOM API normalization issues (events in particular) are out of the way.<p>The only reason I can think of to use JQuery beyond that is that it's a dependency for a lot of libraries you use, you're supporting something other than Android/iOS on mobile or you really, really like the extras like animate, their powerful event system, extend and/or their ajax methods.<p>That said, it's popularized a lot of useful coding methods, showed everybody how normalization should be done, and demonstrated the power of closures/factory functions to keep objects very light-weight in spite of having a ton of functionality associated with them. It's not just for client-side-illiterate noobs. Studying JQ under the hood can teach a lot about JQ.<p>The newer JS libraries/frameworks/tools are concerning themselves more with how to implement highly complex UI in an app-maintainable way.
评论 #4377402 未加载
jpkeisala将近 13 年前
Makes me wonder if it would make sense to have it built-in in browsers?
评论 #4376350 未加载
评论 #4376554 未加载
评论 #4376551 未加载
评论 #4377851 未加载
评论 #4376343 未加载
zalew将近 13 年前
&#62; 73.4% of them don't use any CDN<p>sad
评论 #4376530 未加载
rthprog将近 13 年前
As much as I love jQuery, I feel it can quickly become a crutch, particularly for those who have spent a fair bit of time relying on features like .animate(). Modern browsers often have alternatives that (depending on the situation) simplify your code and offer significantly better performance. Similarly, I cringe whenever I see jQuery UI pop up in an interface - while it's easy to use, it also keeps some from developing UI features of their own.<p>There's a time and place for everything, and as a whole, I feel many are over-relying on jQuery.
评论 #4379137 未加载
tcarnell将近 13 年前
wow - that must have taken a LOT of organising! And how do they know which website I'm going to visit next!?!
sreyaNotfilc将近 13 年前
Its great to see kids my age doing amazing stuff! Thanks to JQuery, I'm able to do a lot of amazing things. It helped make JavaScript more accessible.
adrianwaj将近 13 年前
Well, I built a site in early 2009, worked fine with 1.3, 1.4 broke a nice feature, and 1.8 makes the site unusable. I guess it's 1.7 until eternity.
zerop将近 13 年前
Whats wrong with sites with no jquery!
ojr将近 13 年前
jQuery Mobile is really nice as well, give it another 7 years and it will be on a lot of mobile sites