【问题标题】:https and code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.jshttps和code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js
【发布时间】:2013-02-18 17:44:27
【问题描述】:

我在加载时遇到问题

https://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js (httpS)

但是下载没有问题

http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js (http)

结果是:它没有加载,萤火虫说 https://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.jsStatus Aborted

如果我使用 http(不是 https),那么它看起来没问题:200 OK

为什么会发生以及如何解决?

他们不允许使用httpS吗?

【问题讨论】:

    标签: jquery jquery-mobile https cdn


    【解决方案1】:

    jQuery.com 上托管的库由不支持 https:// 的 CDN 提供,这就是您收到错误的原因。

    如果你真的希望通过 https:// 传递 jQuery(移动),你可以使用 GoogleMicrosoft CDN。遗憾的是,Google 不托管 jQuery Mobile 库,Microsoft 也不托管 1.3.0 RC 版本。

    Microsoft SDN 上托管的 jQuery mobile 的最新版本(可以通过 https 访问)是1.2.0

    https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.structure-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.structure-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.theme-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.theme-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.js https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.js https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/ajax-loader.gif https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/ajax-loader.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-18-black.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-18-white.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-36-black.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-36-white.png

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-15
      • 1970-01-01
      • 2022-01-18
      • 1970-01-01
      • 2016-02-22
      • 1970-01-01
      • 2019-01-22
      相关资源
      最近更新 更多