【发布时间】:2020-10-16 21:01:00
【问题描述】:
当我想把 js 文件我得到这个错误
GET http://localhost:3000/src/app.js net::ERR_ABORTED 404 (Not Found)
HTML
<!DOCTYPE html>
<html>
<head>
<title>Pug with Java</title>
</head>
<body>
<script src="src/app.js"></script>
</body>
</html>
项目结构
【问题讨论】:
-
你的问题到底是什么?
-
试试
<script src="app.js"></script> -
你的 html 文件在哪里?
标签: javascript pug-loader