摘要:
1. 闭包函数 // 闭包函数 var a = 123; function f1() { console.log(a); var b =234; function f2() { console.log(b); } return f2; } // 打印a 123 result 被赋值为f2函数 var 阅读全文
posted @ 2022-11-10 17:53
LeoShi2020
阅读(39)
评论(0)
推荐(0)
摘要:
1. 执行流 // 执行流 var a = 1; // 1 var b = 2; // 2 function fn(x) { var a = 10; // 4 function bar(x) { // 6 // 11 var a = 100; // 7 a=100 // 12 a=100 b = x 阅读全文
posted @ 2022-11-10 17:07
LeoShi2020
阅读(39)
评论(0)
推荐(0)
摘要:
1. 网页源码 <body> <header class="text-center"> <h1>JavaScript_DOM</h1> </header> <section class="container"> <div class="form p-4 bg-dark text-light text 阅读全文
posted @ 2022-11-10 16:12
LeoShi2020
阅读(32)
评论(0)
推荐(0)
摘要:
1. 面向对象 // 大括号就是对象 p = { a:1, b:2, c:3, } // 系统对象全部基于window // console.log(window); // window.alert(1); // alert(2); // console.log(navigator.appVersi 阅读全文
posted @ 2022-11-10 12:05
LeoShi2020
阅读(27)
评论(0)
推荐(0)
浙公网安备 33010602011771号