CDN 上有哪些众所周知的 JavaScript 库,URL 是什么?
众所周知,JQuery 存在于 Microsoft 和 Google CDN 中,但我听说的也越来越多,例如 Yahoo YAPI 等。
我是一名新的 Web 开发人员,有兴趣了解哪些库被广泛使用、位于 CDN 上并且值得学习。您会推荐哪些图书馆?
It's pretty common knowledge that JQuery is in both the Microsoft and Google CDN, but there are more and more I'm hearing about such as Yahoo YAPI and others.
I'm a new web developer and am interested in hearing about what libraries are widely used, located on a CDN, and worth learning about. What libraries would you recommend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Google 托管的内容比 jQuery 多一些,因此它是一个非常好的 CDN 资源:
Google 的另一个好处(但没有像应有的那样宣传)是它托管大多数以前的版本,并允许您通过多种方式访问它,例如:
另一个不那么公开的功能是它们托管 jQuery UI 和所有基本主题的 CSS/图像,这里有一个问题,只需更改网址中的版本号以匹配您正在使用的库版本即可。
Google hosts a few more than jQuery, so it's a pretty good CDN resource:
Another benefit of Google's that's not as publicized as it should be is it hosts most previous versions and lets your access it in a number of ways, for example:
And another not-so-publicized feature is they host jQuery UI and the CSS/images for all the base themes, there's a question on it here, just change the version numbers in the URL to match the library version you're using.
图书馆由你决定。 jQuery 有很大的发展势头,微软也采用了它,所以我认为它是一个很好的竞争者。
Google 托管了相当多的库。
Microsoft CDN 不太好,因为它不使用自己的域,因此您最终可能会传递来自 Microsoft 站点的 cookie 数据。
Library is up to you. jQuery has a lot of momentum and Microsoft have adopted it, so I'd say it is a good contender.
Google hosts quite a few libraries.
The Microsoft CDN is not as good, as it doesn't use its own domain, so you may end up with cookie data from the Microsoft site being passed around.
您可以在这篇文章中详细了解 CDN。
You can read more about CDNs in this post.