我有问题要加载
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)
结果是:它不能加载,firebug说https://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js Status Aborted
如果我使用http (不是https),那么它看起来是ok的:200 OK。
为什么会发生这种情况以及如何修复它?
他们不允许使用httpS吗?
发布于 2013-02-18 17:36:34
托管在jQuery.com上的库是由不支持https://,的CDN交付的,这就是为什么您会收到错误。
如果您确实希望通过https://下发移动端jQuery,您可以使用Google或Microsoft CDN。遗憾的是,谷歌没有托管jQuery移动库,微软也没有托管1.3.0RC版本。
托管在Microsoft SDN (可以通过https访问)的jQuery mobile的最新版本是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 C13 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
https://stackoverflow.com/questions/14932997
复制相似问题