js中既然变量都用var修饰,为什么不直接去掉?

1.加了var就是变量。
2.没有var就是对属性进行赋值。

猜你喜欢

转载自blog.csdn.net/philsonzhao/article/details/78653478