使用相对路径时,jquery mobile js和css的安全(https)导入失败

use*_*761 3 jquery-mobile

我使用相对路径来包含jquery mobile.但是当通过安全(https)链接加载时,导入失败.我做以下事情:

<link rel="stylesheet" href="//code.jquery.com/mobile/1.1.0/jquery.mobile.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
Run Code Online (Sandbox Code Playgroud)

来自googleapis的jquery通过罚款.但我得到上面的移动.js和.css导入的以下错误.

无法加载资源https://code.jquery.com/mobile/1.1.0/jquery.mobile.min.css
无法加载资源https://code.jquery.com/mobile/1.1.0/jquery.mobile .js文件

对不起,如果这看起来像行人问题,我是新手.

gco*_*ard 6

如果您单击两个失败的资源链接,您将理解原因.

code.jquery.com没有有效的SSL证书.

正如Quinn所说,您应该将这些JS文件复制到您的服务器并自行提供,或者使用PHP或其他脚本语言设置代理页面,该语言将通过HTTP获取文件并从您的服务器提供这些文件.