【发布时间】:2015-05-23 09:51:11
【问题描述】:
我刚刚创建了一个包含 js 脚本的非常基本的 html 文件:
JS 文件:
<script type='text/javascript'>
alert("asdas");
</script>
HTML 文件:
<html>
<head>
<script src="script.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
而且我不知道为什么它不起作用。我正在处理它2天。我的 html/js 网站从来没有遇到过这样的问题。该错误出现在 Chrome 的 JS 控制台上,但该代码在其他浏览器上也不起作用。
【问题讨论】:
标签: javascript html