<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--
1. Inline write javascript code in the head tag
type="text/javascript " You can omit
<script type="text/javascript">//code</script>
2.
Add an attribute src="" to the inline style of the external chain. It
is not allowed to write code inside the external chain tag
When the browser parses the html file, it is parsed from top to bottom line by line
-->
<script type="text/javascript">
//code
//alert("xxx");//pop-up box
/*var aa =1;
alert(typeof(aa));
aa="str";
alert(typeof(aa));*/
</script>
<!--<script type="text/javascript" src="../js/demo.js">
</script>-->
</head>
<body>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--
1. Inline write javascript code in the head tag
type="text/javascript " You can omit
<script type="text/javascript">//code</script>
2.
Add an attribute src="" to the inline style of the external chain. It
is not allowed to write code inside the external chain tag
When the browser parses the html file, it is parsed from top to bottom line by line
-->
<script type="text/javascript">
//code
//alert("xxx");//pop-up box
/*var aa =1;
alert(typeof(aa));
aa="str";
alert(typeof(aa));*/
</script>
<!--<script type="text/javascript" src="../js/demo.js">
</script>-->
</head>
<body>
</body>
</html>