本内容遵循CC 4.0 BY-SA版权协议 代码评审做了几年,我发现一个规律:很多写了两年 JavaScript 的开发者,能熟练使用 let 和 const ,但被问到"为什么不用 var "时,只能答出" var 有变量提升,不好用 ...
@devongovett I think what we really need is language-level chunking support that lets us capture the benefits of scope hoisting without incurring the costs of scope hoisting itself.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results