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/