首先,我对我的英语感到抱歉:))
当我尝试在 index.html 上包含文件 .js 时遇到一些问题
<script src "../src/man/js/Generator.js"> </script>
但是当我按 F12 进行调试时,我收到如下错误: “无法从 source/src/man/js/Generator.js 加载 '../src/man/js/Generator.js'” 这是文件的结构:
那么我该如何处理这个问题呢?
最佳答案
您缺少=
:
<script src="../src/main/js/Generator.js"></script>
关于javascript - 在html中包含js文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37289016/