没有Live Server扩展,链接到HTML的Javascript文件将不再被创建,为什么?
我使用的是一个没有Live Server扩展,链接到HTML的Javascript文件将不再被创建,为什么?,javascript,html,localhost,src,file-not-found,Javascript,Html,Localhost,Src,File Not Found,我使用的是一个visualstudio代码程序,我有一个扩展,允许实时本地主机,因此我可以更改代码并在HTML上查看更改,而无需每次进行更改并保存时都刷新它。当我开始的时候,一切都很好。但我注意到,当我打开HTML本身时,它会导致一个错误,即无法找到链接到HTML的文件,例如多个javascript文件和jquery库等 Index.html:14 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Events/Introducti
visualstudio代码
程序,我有一个扩展,允许实时本地主机,因此我可以更改代码并在HTML
上查看更改,而无需每次进行更改并保存时都刷新它。当我开始的时候,一切都很好。但我注意到,当我打开HTML本身时,它会导致一个错误,即无法找到链接到HTML的文件,例如多个javascript
文件和jquery
库等
Index.html:14 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Events/Introduction.js net::ERR_FILE_NOT_FOUND
Index.html:16 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Characters/Character%20Customization.js net::ERR_FILE_NOT_FOUND
Index.html:18 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Functions&Variables/Clean.js net::ERR_FILE_NOT_FOUND
Index.html:20 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Events/Main%20Menu.js net::ERR_FILE_NOT_FOUND
Index.html:22 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Default/Systems.js net::ERR_FILE_NOT_FOUND
Index.html:24 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Events/Equipment.js net::ERR_FILE_NOT_FOUND
Index.html:26 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Characters/Inventory.js net::ERR_FILE_NOT_FOUND
Index.html:28 GET file:///C:/Game%20Projects/The%20Grand%20Hunt%20CYOA/Events/Store.js net::ERR_FILE_NOT_FOUND
这里是我用来链接这些内容的HTML。我是否做了链接错误,而localhost
live-extension在某种程度上没有问题?这是扩展名“Live Server”
大狩猎赛欧亚,创造者:/u/羽毛\u蛇
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=NO, width=device-width, initial-scale=1.0">
<script src="/Game Projects/The Grand Hunt CYOA/Arts/Style.css" rel="stylesheet" type="text/css"></script>
<script src="/jQuery.js" type="text/jQuery"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Events/Introduction.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Characters/Character Customization.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Functions&Variables/Clean.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Events/Main Menu.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Default/Systems.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Events/Equipment.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Characters/Inventory.js" type="text/javascript"></script>
<script src="/Game Projects/The Grand Hunt CYOA/Events/Store.js" type="text/javascript"></script>
<title>The Grand Hunt CYOA, creator: /u/Feather_Snake</title>
</head>