怎样先运行head里面的代码。然后运行body里面的文件。是不是不用输入俩次<script>.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>认识语句</title>
<script type="text/javascript">
document.write("后做笔记");
</script>
</head>
<body>
<script type="text/javascript">
alert("先做笔记");
</script>
</body>
</html>