使用 jQuery 有哪些优点和缺点? [英] What are some of the pros and cons of using jQuery?

查看:35
本文介绍了使用 jQuery 有哪些优点和缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一个几乎不精通 javascript 的人,jQuery 适合我吗?有没有更好的库可以使用?我看过很多与 jQuery 相关的帖子,它似乎是将 javascript 合并到 ASP.NET 应用程序中的最有效方法.

As someone who is only barely proficient in javascript, is jQuery right for me? Is there a better library to use? I've seen lots of posts related to jQuery and it seems to be the most effective way to incorporate javascript into ASP.NET applications.

我访问了 jQuery 的 站点,并找到了教程和其他有用的信息.任何其他参考资料(例如书籍、博客等)都会有所帮助.

I've been out to jQuery's site and have found the tutorials and other helpful information. Any other reference material (i.e books, blogs, etc.) would be helpful.

谢谢!

推荐答案

jQueryPrototype 是他们处理了很多跨浏览器的问题,这些问题会使 Javascript 编写起来如此痛苦.其中之一,甚至 mootools 对您都有好处,它们各自的网站与资源一样好它会得到.

The great thing about libraries like jQuery and Prototype is that they take care of a lot of the cross-browser kwirks that can make Javascript such a pain to write. Either one of those or maybe even mootools will be good to you, their respective websites being about as good as a resource as it's gonna get.

编辑:至于在您的页面上有额外加载大小的骗局",我建议使用 Google 为您托管这些.乐观地说,有些人会从其他网站缓存它,而且 Google 会为您处理版本/压缩.

edit: as far as the 'con' of having extra loading size on your page, I suggest using Google to host these for you. Optimistically, some people will have it cached from other websites, plus Google takes care of versions/compression for you.

这篇关于使用 jQuery 有哪些优点和缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆