作用域 37怪 2020-07-04 86 阅读1分钟 一、function 中定义的变量是有作用域的 function testFn () { var test = 'abc'; } testFn(); console.log(test);