Gaubee
阅读
归档
标签
关于
编辑器
阅读
/
短评
短评
·
Gaubee
·
2018年6月22日
X 归档 2018-06-22
x-archive
在编辑器打开
查看原始 Markdown
1 条动态 · 图 1 · 视频 0
@jaffathecake
17:43
译
原
原推文
If you create a var outside of a function, it ends up on the global scope, but that doesn't happen with let/const.
http://jsbin.com/leyadif/1/edit?js,console
如果你在函数外创建一个 var,它会落到全局作用域,但 let/const 不会这样。
← 返回阅读