[英]Failed to load resource: the server responded with a status of 404 (Not Found) - JavaScript
Im working on learning JavaScript at the moment and don't fully understand the error in my console.我目前正在学习 JavaScript 并且不完全理解我的控制台中的错误。 I'm not working on anything too complicated and when following tutorials, I never have issues.
我没有做任何太复杂的事情,在学习教程时,我从来没有遇到过问题。 It's always when I try to practice a project on my own.
当我尝试自己练习一个项目时,总是如此。 My file structure follows as:
我的文件结构如下:
Task List
-index.html
-styles.css
-app.js
I've seen on similar questions that it's an issue when it comes to linking other folders but my css and js are both being added correctly.我在类似的问题上看到,在链接其他文件夹时这是一个问题,但我的 css 和 js 都被正确添加。
It's not founding the fonts ( error 404 ), try to add them or delete the fonts import.它没有创建 fonts (错误 404 ),尝试添加它们或删除 fonts导入。
So you copy pasted your html from a place that were using fonts, or you are not providing us a full project file structure.因此,您从使用 fonts 的地方复制粘贴了 html,或者您没有向我们提供完整的项目文件结构。
If you would like to use an icon library , you should import it , using a CDN or downloading them , those are fonts files.如果您想使用图标库,您应该导入它,使用 CDN 或下载它们,这些是 fonts 文件。 Follow the instructions in the project website, like FontAwesome .
按照项目网站中的说明进行操作,例如FontAwesome 。
So:所以:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.