在html中导入js
<script type="text/javascript" src="yourfile.js"></script>
在html中包含脚本
<script type="text/javascript" src="/path/to/script.js"></script>
如何将js文件链接到html
<script src="index.js"></script>
如何将javascript链接到html
<script src="PathToYourFile.js"> </script>
将javascript链接到html
<script src="index.js"> </script>
导入脚本html
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...
进口脚本html
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...