Console Error:
scripts.js ERR_FILE_NOT_FOUND
Pointed his way
<script type="text/javascript" src="/js/scripts.js"></script> In fact, the Path looks like this:
C:\Users\admin\Dropbox\stameska.ru\src\js\scripts.js ...">
Console Error:
scripts.js ERR_FILE_NOT_FOUND
Pointed his way
<script type="text/javascript" src="/js/scripts.js"></script> In fact, the Path looks like this:
C:\Users\admin\Dropbox\stameska.ru\src\js\scripts.js Choose:
Run a real http server. Then the absolute path will be considered relative to it, and not relative to the root of the disk. With nodejs, you can:
npm i -g http-server http-server -p 3000 src Use relative path to script:
<script type="text/javascript" src="js/scripts.js"></script> <script type="text/javascript" src="js/scripts.js"></script> Source: https://ru.stackoverflow.com/questions/640810/
All Articles
<script type="text/javascript" src="js/scripts.js"></script>- Yuri