为什么 Web 浏览器没有内置 jQuery? [英] Why web browsers don't have jQuery built in?

查看:19
本文介绍了为什么 Web 浏览器没有内置 jQuery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对我来说这似乎是个好主意.或者向 Javascript 本身添加附加功能?

解决方案

因为它只是众多库中的一个.它可能很受欢迎,但它远不是唯一的选择.而且它还会导致它在特定版本上冻结并使改进速度慢得多.

另外,无论如何也没有什么优势.它相当小,您可以将其设置为可被浏览器无限缓存,因此无论如何它只会下载一次 - 如果您有一个新版本,它将有一个新的文件名,因此让它永不过期也没有坏处.

It seems like a good idea to me. or add the additional features to Javascript itself?

解决方案

Because it's just one library of many. It may be popular but it's far from being the only choice. And it would also cause it to freeze at a particular version and make improvements much slower.

Plus there is little advantage anyway. It's fairly small and you can set it to be cachable indefinably by the brower so it will only be downloaded once anyway - if you have a new version it will have a new filename, so there is no harm in making it never expire.

这篇关于为什么 Web 浏览器没有内置 jQuery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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