我的照片就是这样:
Areas/YonetimPaneli/Content/assests/pages/media/bg/1.jpg
Areas/YonetimPaneli/Content/assests/pages/media/bg/2.jpg
Areas/YonetimPaneli/Content/assests/pages/media/bg/3.jpg
Areas/YonetimPaneli/Content/assests/pages/media/bg/4.jpg
我在.js文件中使用了相同的路径:
..Areas/YonetimPaneli/Content/assets/pages/media/bg/1.jpg
..Areas/YonetimPaneli/Content/assets/pages/media/bg/2.jpg
..Areas/YonetimPaneli/Content/assets/pages/media/bg/3.jpg
..Areas/YonetimPaneli/Content/assets/pages/media/bg/4.jpg
但是当我运行页面然后单击F12时,出现如下错误:
Error Image
如何解决此问题?
编辑:
我这样更改我的.js文件路径:
../Areas/YonetimPaneli/Content/assets/pages/media/bg/1.jpg
../Areas/YonetimPaneli/Content/assets/pages/media/bg/2.jpg
../Areas/YonetimPaneli/Content/assets/pages/media/bg/3.jpg
../Areas/YonetimPaneli/Content/assets/pages/media/bg/4.jpg
这是错误:
New Error
最佳答案
第一个错误是在点../Areas
之后缺少反斜杠。
其次,它取决于服务器的根目录。
您是如何创建服务器的?服务器是NodeJS吗?