include js file on html

2019-09-09 22:24发布

At first, I'm sorry about my English :))

I had some problems when i try to include file .js on index.html

<script src "../src/man/js/Generator.js"> </script>

but when i press F12 for debug, i get an error like: "failed to load '../src/man/js/Generator.js' from source/src/man/js/Generator.js" this is file's structure:

enter image description here

so how can i deal this?

3条回答
别忘想泡老子
2楼-- · 2019-09-09 22:53

You are missing the =:

<script src="../src/main/js/Generator.js"></script>
查看更多
再贱就再见
3楼-- · 2019-09-09 22:53

Please add equal src = "path"

<script src="../src/man/js/Generator.js"> </script>
查看更多
SAY GOODBYE
4楼-- · 2019-09-09 23:01

Oh, you must have check your Path. <script src "../src/man/js/Generator.js"> </script> won't work. but, <script src "../src/main/js/Generator.js"> </script> will work. Man, you forget the 'i' in 'main'

查看更多
登录 后发表回答