将JavaScript放在HTML文件中的位置?假设我有一个相当大的JavaScript文件,压缩到大约100 kb左右。我的意思是,它是一个外部文件,可以在VIA中链接<script src="...">,而不是粘贴到HTML本身。放在HTML中的最佳位置是哪里?<html><head>
<!-- here? -->
<link rel="stylesheet" href="stylez.css" type="text/css" />
<!-- here? --></head><body>
<!-- here? -->
<p>All the page content ...</p>
<!-- or here? --></body></html>每个选项之间是否有功能上的差异?
添加回答
举报
0/150
提交
取消