javascript - jQuery 1.11.1 还是 jQuery 3.1.0?

标签 javascript jquery version

jQuery下载页面推荐版本3.1.0,但是jQuery latest是版本1.11.1。是不是开发者没改最新版本,还是1.11.1就是最新版本?

另外,我可以获得 jQuery 1.11.1 API 吗?只是想知道...

最佳答案

正如 Kaleb 所说,3.1.0 比 1.11.1 更新。并回答你的第一个问题。

Did the developers not change the latest version?

来自JQuery博客可以找到here :

The jquery-latest.js and jquery-latest.min.js files were meant to provide a simple way to download the latest released version of jQuery core. Instead, some developers include this version directly in their production sites, exposing users to the risk of a broken site each time a new version of jQuery is released.

To mitigate the risk of “breaking the web”, the jQuery team decided back in 2013 that jquery-latest.js could not be upgraded to the 2.0 branch even though that is technically the latest version. There would just be too many sites that would mysteriously stop working with older versions of Internet Explorer, and many of those sites may not be maintained today.

As jQuery adoption has continued to grow, even that safeguard seems insufficient to protect against careless use of http://code.jquery.com/jquery-latest.js. So we have decided to stop updating this file, as well as the minified copy, keeping both files at version 1.11.1 forever.

关于javascript - jQuery 1.11.1 还是 jQuery 3.1.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39156125/

相关文章:

javascript - 单击子项时触发子项和父项的 onClick

javascript - 使用 FormGroups 的 FormArray 修补 Angular 响应式表单

如果readystate = 4且status = 200则执行Jquery S.Ajax错误处理程序

android - 使用不受支持的Gradle版本

r - 安装旧版本的 R 包

php - 查找 PHP 中何时引入内部(内置)函数和预定义常量(版本号)

javascript - Three.js 如何在 3D Globe、Three.js 上放置带纬度/经度的标记?

javascript - 为什么我的代码告诉我 .draw 不是函数?

javascript - 默认情况下隐藏覆盖时,jquery 画廊不可见

jquery - 在 Jquery Mobile 或 PhoneGap 中禁用自动旋转