简体   繁体   中英

External javascript file not working

I have some javascript that's loading just perfectly at the bottom of my site. I wanted to externalize this aforementioned js, so I'm now linking to the code externally, but now the code breaks and is pointing to an error (not within the js file but the jquery file). What changes when the js is externalized? Are variables retrieved in the same way?

Thanks

您可能以错误的顺序添加了<script>标记。

you can probably use firebug and see whats happening there. there is net panel which shows whethere that particular js is downloaded propery or not. after that you can see the errors on the console window of firebug to find what exactly is the error.

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