Home >Web Front-end >H5 Tutorial >为什么把 Script 标签放在 body 结束标签之后 html 结束标签之前?

为什么把 Script 标签放在 body 结束标签之后 html 结束标签之前?

WBOY
WBOYOriginal
2016-06-07 08:42:101552browse

新浪微博、谷歌等,为什么把Script标签放在body结束标签之后html结束标签之前?
而不是之前推荐的body结束标签之前?
问题关键:放在body结束标签之前与之后有什么差别?

回复内容:

Google并没有把<script>插入在</script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn