1 <!DOCTYPE html> 2 <html> 3 <head lang="en"> 4 <meta charset="UTF-8"> 5 <title></title> 6 </head> 7 <body> 8 <div id="box"></div> 9 <!--<div id="box"></div>--> 10 11 <script> 12 13 14 console.log(document); 15 16 console.log(document.getElementById("box")); 17 console.log(document.getElementsByClassName("aaa")); 18 19 </script> 20 </body> 21 </html>