【发布时间】:2018-01-02 13:45:33
【问题描述】:
我使用 Netbeans 8.2 并创建了一个 Web 应用程序。我有一个html和一个js。 html是
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>TODO write content</div>
<script type="text/javascript" src="js1.js"></script>
</body>
</html>
项目的结构是
我想包含 js1.js。
当我在浏览器的控制台中运行应用程序时,我得到一个 404
GET http://localhost:8080/Prueba/js1.js [HTTP/1.1 404 Not Found 2ms]
为什么我会得到这个 404?
【问题讨论】:
标签: javascript netbeans get http-status-code-404