html

时间:2016-03-18 04:46:37

标签: javascript jquery html twitter-bootstrap

我似乎在使用本地js文件时遇到了很多麻烦。

每当我将本地文件链接到index.html时,

控制台为每个人生成了此错误

  

未捕获的SyntaxError:意外的令牌<

但是,在线链接文件似乎工作正常。

<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

我肯定文件路径是正确的,首先仔细检查。 我也尝试将一些文件移动到与html文件相同的文件夹中,但仍未解决。

我已经知道这可能是一个编码问题,但我已添加

<meta charset="utf-8">

已经是标题。

enter image description here enter image description here

编辑:此外,我在使用在线副本时遇到bootstrap.min.css问题。本地副本也失败了。

0 个答案:

没有答案