Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
没有Live Server扩展,链接到HTML的Javascript文件将不再被创建,为什么?_Javascript_Html_Localhost_Src_File Not Found - Fatal编程技术网

没有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>