jquery.cookies 是否托管在 Google CDN 上?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9115278/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 10:21:27  来源:igfitidea点击:

Is jquery.cookies hosted on the Google CDN?

jquerygoogle-cdn

提问by Paul

I can't seem to find the jquery plugin for cookieson googles CDN. Is it only available for download?

我似乎无法在 googles CDN 上找到用于cookie的 jquery 插件。只能下载吗?

采纳答案by Dogbert

No, it's not on the Google CDN. All the libraries on the CDN are listed here - http://code.google.com/apis/libraries/

不,它不在 Google CDN 上。CDN 上的所有库都列在这里 - http://code.google.com/apis/libraries/

回答by Jim

Maybe this will do? http://www.jsdelivr.com/#!jquery.cookieIt also supports SSL

也许这会做?http://www.jsdelivr.com/#!jquery.cookie也支持 SSL

回答by Akira Yamamoto

It is not available on Google's CDN.

它在 Google 的 CDN 上不可用。

But cdnjs makes it available here: http://cdnjs.com/libraries/jquery-cookie/

但是 cdnjs 在此处提供它:http://cdnjs.com/libraries/jquery-cookie/

cdnjs supports http/https/spdy. Seems to be more popular than jsDelivr: http://www.jsdelivr.com/#!jquery.cookie

cdnjs 支持 http/https/spdy。似乎比 jsDelivr 更受欢迎:http: //www.jsdelivr.com/#!jquery.cookie

Uptime is good http://stats.pingdom.com/4jg86a2wqei0/687131/history

正常运行时间很好http://stats.pingdom.com/4jg86a2wqei0/687131/history

回答by jose.angel.jimenez

According to CDNperf(http://www.cdnperf.com), at the time of writing this answer, the best CDN hosting for jquery.cookiesis jsDelivr(http://jsdelivr.com), both in terms of latency (<100ms) and minimum downtime.

CDNperfhttp://www.cdnperf.com),在写这个答案的时候,CDN托管的最佳jquery.cookiesjsDelivrhttp://jsdelivr.com),无论是在延迟方面(< 100 毫秒)和最短的停机时间。

Remember to link the .JS file from your HTML without the protocolprefix, so that it works both with HTTP and HTTPs:

请记住在不带协议前缀的情况下从 HTML 链接 .JS 文件,以便它同时适用于 HTTP 和 HTTP:

//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js

回答by Christopher

You can get it via http://cachedcommons.org, but SSL isn't available if that's a blocker.

您可以通过http://cachedcommons.org获取它,但如果这是一个阻止程序,则 SSL 不可用。

回答by Hamid Sarfraz

No, its not available on Google's Public CDN. But it is available on many other Public and Opensource CDNs. Here is the link from jQuery Cookie CDNfor you:

不,它在 Google 的公共 CDN 上不可用。但它可以在许多其他公共和开源 CDN 上使用。这是jQuery Cookie CDN为您提供的链接:

<script src="https://pagecdn.io/lib/jquery-cookie/v1.4.1/jquery.cookie.js" integrity="sha256-uEFhyfv3UgzRTnAZ+SEgvYepKKB0FW6RqZLrqfyUNug=" crossorigin="anonymous"></script>

回答by Panthro

have you ever tried: http://cdnjs.com/

你有没有试过:http: //cdnjs.com/

Its available there.

它在那里可用。