哪个jQuery URL用于生产应用程序,为什么? [英] Which jQuery url to use for production app and why?

查看:89
本文介绍了哪个jQuery URL用于生产应用程序,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我看到了两个用于jQuery的网址

I saw two url's for jquery today

http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2

http://jqueryjs.googlecode.com/files/jquery -1.3.2.min.js

我应该在生产应用程序中使用哪个?

Which one should i use for my production app?

您在生产应用中使用哪个网址?

Which url is used by you in your production apps?

推荐答案

第一个链接是从Google的CDN提供的jQuery ...您需要使用的内容,这是给您最大的机会来显示已经存在的文件在用户的系统上.这是每个人都使用的.

The first link is the jQuery served off Google's CDN... its what you need to use, and what gives you the biggest chance of the file already being present on the user's system. Its what everyone uses.

第二个链接是从jQuery项目存储库下载文件.每当项目所有者发布新版本时,都可以(并且将)删除此文件.因此,您不想在生产中使用它:D

The second link is to download the file from the jQuery project repository. This file can (and will) be removed whenever the project owners release a new version. So you wouldn't want to use it on production :D

这篇关于哪个jQuery URL用于生产应用程序,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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