新人求助:外部JS为什么在浏览器不能显示
「已注销」 2019-08-01 11:26:47 行内,内嵌两种方式可以显示,外部JS不能显示
<!DOCTYPE html>
<html>
<head>
<title>JS添加方式</title>
<script type="text/javascript">
alert('内嵌JS')
</script>
<script src="pop.js">
</script>
</head>
<body>
<button onclick="alert('行内JS')">单机我试试</button>
</body>
</html>
//外部JS代码
alert('外部js');