📌  相关文章
📜  外部 javascript 文件不起作用 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:19.626000             🧑  作者: Mango

代码示例1
Most likely, the problem is that you are including your js file in a head tag or somewhere above your main content. ... You should be able to add the js file in a script tag. The page loads first then JavaScript. You need conditionals to load an external script if the JavaScript file is in the head tag.

asdlfasdjfd