问题:
This question already has an answer here: 这个问题在这里已有答案:
- Latest jQuery version on Google's CDN 5 answers 谷歌CDN 5答案的 最新jQuery版本
I use the following for a jQuery link in my <script>
tags: 我在<script>
标签中使用以下内容作为jQuery链接:
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
Is there a link to the "latest" version? 是否有“最新”版本的链接? Something like the following (which doesn't work): 像下面这样的东西(不起作用):
http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js
(Obviously not necessarily a great plan to link your code to potentially changing libraries but useful in development.) (显然不一定是将代码链接到可能更改的库但在开发中有用的好计划。)
解决方案:
参考一: https://stackoom.com/question/1qpY/是否有链接到Google-API上的-最新-jQuery库-重复参考二: https://oldbug.net/q/1qpY/Is-there-a-link-to-the-latest-jQuery-library-on-Google-APIs-duplicate
来源:oschina
链接:https://my.oschina.net/u/4428122/blog/4328319