简体   繁体   中英

Why won't my javascript page link to my HTML page?

I am having trouble linking my javascript to my HTML. I can get my CSS to link but the javascript won't? I have two javascript pages and both won't link.

Here's what I wrote in the HTML:

<script src="js/question.js"></script>

<script src="js/app.js"></script>

Usually, this type of error concerns the path. Try to prepend a "/" to your path, like: <script src="/js/question.js"></script>

I am having trouble linking my javascript to my HTML. I can get my CSS to link but the javascript won't? I have two javascript pages and both won't link.

Here's what I wrote in the HTML:

<script src="js/question.js"></script>

<script src="js/app.js"></script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM