<!DOCTYPE html>
<html>
<head>
<title>js stalker</title>
<script scr="stalker.js"></script>
</head>
<body>
<h1>this is to test the basic js values</h1>
</body>
</html>
源文件与stalker.js的内容位于同一目录
alert("the java script is linked");
答案 0 :(得分:2)
您拼写了src
标签的<script>
属性。该行应为<script src="stalker.js"></script>