会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Steven_YF
一切美好只是昨日沉醉 淡淡苦涩才是今天滋味。
博客园
首页
新随笔
联系
订阅
管理
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)
编辑