加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

通过console.log()打印window对象的属性、方法、事件

发布时间:2020-12-14 01:37:19 所属栏目:Windows 来源:网络整理
导读: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 运行 右击空白处【 】 【检查】 ?
 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>

运行

右击空白处【 】 【检查】

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读