Jquery将无法加载,因为找不到它 [英] Jquery will not load because it can't be found
本文介绍了Jquery将无法加载,因为找不到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的html页面不能正常工作,因为我的脚本没有加载。我使用的脚本如下:
My html page don't works because my script is not loading. The script I'm using is as follows:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
这是错误:
This is the error:
Failed to load resource: net::ERR_FILE_NOT_FOUND
file://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
你能看到问题吗?我只是从谷歌托管库复制了脚本src。
Can you see the problem? I just copied the scripts src from google hosted libraries.
推荐答案
我认为你正在使用本地HTML文件进行测试文件系统。没有指定协议的 //
假设 file://
因此。
I think you're testing this using an HTML file on your local file system. //
with no protocol specified is assuming file://
because of this.
这篇关于Jquery将无法加载,因为找不到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文