关于let var const MrLiAng105105 2020-06-17 81 阅读1分钟 1、 2、 var a = 1 let b = 1 const c = 1 console.log(window.b) // undefined console.log(window. c) // undefined function test(){ console.log(a) let a } test()