谁能告诉我将下一个脚本标签放在 <body> 元素之后和将它放在 </body> 元素之前有什么好处?
<script>
(function (){
var script = document.createElement("script");
script.async = true;
script.type = "text/javascript";
script.src = "foo.js";
document.getElementsByTagName("head")[0].appendChild(script);}
());
</script>