2021年8月5日
摘要: 闭包 我们都知道函数由于作用域的存在,外部一般是无法访问函数内部局部变量的: 1 function f1() { 2 var a = 1 3 } 4 console.log(a);//Uncaught ReferenceError: a is not definedat Untitled-1.htm 阅读全文
posted @ 2021-08-05 21:44 小二上酒~ 阅读(38) 评论(0) 推荐(0) 编辑