作用域

86 阅读1分钟

一、function 中定义的变量是有作用域的 function testFn () { var test = 'abc'; } testFn(); console.log(test);