我只是在本地.html文件这一行:为什么我无法从本地文件加载jQuery?
<script src="http//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
作为标准加载谷歌的jQuery的。
但是GET请求,只不过没有......铬控制台只是显示小红x其中:
GET file://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
:(什么错
你错过了':'在'http://' – Reigel
离开http并使用'// ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'并不罕见。看到这篇文章:http://stackoverflow.com/questions/15692601/links-without-http-like-code-jquery-com-etc – dcaswell