国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

JavaScript? ??? ?? ????

<… < /script>

<body>...</body> ?? ?? ??? ??? <script>...</script> ??? ????. ??? ? ??? ??? ? ?? ?? ??? HTML?? JavaScript? ???? ? ?? ?? ??? ????. ??? JavaScript

??? ???? <script> ??? <body>...</body> <head>...</head> ?? ?:

<html>
<head>
<h1> JavaScript in head. </h1>
<script>
alert("hello word!");
</script>
</head>
<body></body>
</html>

? ????? ?? ??? ?? ????? ??? ??? ???? JavaScript ??? < ;head></head> ; ? ?? ?? <body></body>? ?? ??? ??? ????.

??? ??? <head></head> <body>? ?? ??? ?? ???? ?? ????. head ??? ??? ??? ???? ???? ?? ?? ???? ??, ??? ??? ???? ????? ?? ? ??? ?? ? ?????.

?? JavaScript

HTML?? JavaScript ??? ?? ???? ? ??? js ??? JavaScript ??? ??? ?? ????. ?? js?? ????. HTML? ? ??. "hello world"? ?? ???????.

??? ???? ?? ??? ???? ??? "out.js"? ??? ? ????? ????. alert("hello word!");

?? ??? ???? ??? "test2.html"? ???? ????? ????.

<html>
<head>
<h1> my JavaScript code in "out.js" </h1>
</head>
<body>
<script src="out.js"></script>
</body>
</html>

????? ?????? "test2.html" ??? ?????? ????? ?????. ???? ?? ??? ?? ? ??? ??? ??? ?? ? ? ????.

?? ?? ? ?? ??? ???? ??? ? JavaScript ??? HTML? ?? ?????. JavaScript ??? ?? ??? ???? ???? ????? JavaScript ??? ??? ?? ???? ?????.

??? ?? ??? ????. ???? ??? ??? ??, ?? ??? ?? ?? JavaScript ??? ?? ??? ?? ???? ??? ?? ??? ?? ?????.

HTML ??? ?? ??? ?? JavaScript ??? ????, ?? ???? JavaScript ??? ?? ??? ???? ?????.

?? ??? ???? ??? ??? ?????.

????


???? ??
||
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title> RunJS 演示代碼 </title> <script> var ck = function(){ var x = prompt ("輸入數(shù)據(jù): ", ""); alert(x); } </script> </head> <body> <button onclick="ck();"> 輸入按鈕 </button> </body> </html>