1、通过console.log()打印window对象的属性、方法、事件
1 <!DOCTYPE html> 2 <html lang="zh"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>首页</title> 6 7 8 </head> 9 <body> 10 11 <script type="text/javascript"> 12 console.log(window); 13 </script> 14 </body> 15 <ht ml>
1、通过console.log()打印window对象的属性、方法、事件
1 <!DOCTYPE html> 2 <html lang="zh"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>首页</title> 6 7 8 </head> 9 <body> 10 11 <script type="text/javascript"> 12 console.log(window); 13 </script> 14 </body> 15 <ht ml>