严格模式的作用

1.修复了局部函数this问题。

2.定义变量必须加var。

3.if、for语句里不允许有定义函数。

4.干掉了with。

posted on 2015-03-02 14:49  wish&will  阅读(311)  评论(0)    收藏  举报