web项目中父页面加载子页面报Failed to load resource: the server responded with a status of 404 (Not Found)

父子页面单独打开,不报错,但是父页面加载子页面时,报这个错。

子页面引用路径:

web项目中父页面加载子页面报Failed to load resource: the server responded with a status of 404 (Not Found)

 

父页面home.html加载子页面时,把子页面的引用路径,改成     /项目名/layui/xx.js就好了。

归根结底,是路径的事。

web项目中父页面加载子页面报Failed to load resource: the server responded with a status of 404 (Not Found)

相关文章:

  • 2021-04-17
  • 2022-12-23
  • 2021-10-19
  • 2021-06-03
  • 2022-12-23
  • 2021-10-11
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2021-03-31
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案