2021年1月18日
摘要: 函数声明和变量声明都会被提升。但是,函数声明会覆盖变量声明 var a; function a(){}; console.log(a); 如果变量存在赋值操作,则最终的值为变量的值 var a=1; function a(){} console.log(a);//1 解析如下 var a; func 阅读全文
posted @ 2021-01-18 20:30 Steven_YF 阅读(31) 评论(0) 推荐(0) 编辑