引入 JS 文件失败
来源:4-2 异步方式处理之dialog封装

hen_nam
2016-08-19
通过以下代码,无法引入相应的 JS 文件,浏览器显示 Failed to load resource: the server responded with a status of 404
<script src="/Public/js/dialog/layer.js"></script>
<script src="/Public/js/dialog.js"></script>
另外,src 属性中的 URL 地址为什么是相对于根目录的,而不是相对于当前文件所在目录的呢?
写回答
1回答
-
您好,关于目录可以看下http://coding.imooc.com/learn/questiondetail/1148.html
012016-08-19
相似问题