标签:-o 获取 设计 tle width 全局 ack 设置 charset
01window.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <div id="box"></div> <script> // 访问window成员时候 可以省略window //console.log(window); //var box = window.document.getElementById("box"); //console.log(box); /* //window.alert("ok"); // alert("ok") //var username = window.prompt("请输入用户名"); //console.log(username); var flag = window.confirm("您确认提交吗"); console.log(flag); */ //var age = 30; // 全局变量 会被挂载到window对象下 //console.log(window); //console.log(age === window.age); //var top = "top"; top本身是window对象的属性 可以获取不能设置值 console.log(window.top === window); </script> </body> </html>
03JavaScript程序设计修炼之道_2019-07-07_14-33-54 BOM
标签:-o 获取 设计 tle width 全局 ack 设置 charset
原文地址:https://www.cnblogs.com/HiJackykun/p/11154635.html