案例
f1(); console.log(c);//9 没有var声明当全局变量看 console.log(b);//9 console.log(a);//报错 function f1() { var a = b = c = 9;//等价于 var a=9;b=9;c=9; console.log(a);//9 console.log(b);//9 console.log(c);//9 }
标签:f1,console,log,js,案例,var,解析 From: https://www.cnblogs.com/doubleyancode/p/16786510.html