问题描述
我正在使用visual studio code
程序,并且具有允许Live Local Host的扩展,因此我可以更改代码并查看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 Server”。
<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>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)