通過console.log()打印window對象的屬性、方法、事件


 1 <!DOCTYPE html>
 2 <html lang="zh">
 3 <head>
 4    <meta charset="UTF-8">
 5    <title>window對象</title>
 6 </head>
 7 <body>
 8 <script type="text/javascript">
 9         console.log(window);
10     </script>
11 </body>
12 </html>

運行

右擊空白處【 】 【檢查】

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM