什么是ES5?js中的'use strict'是什么?目的是什么?

版权声明:文章为原创作品,转载请注明出处 https://blog.csdn.net/weixin_43654258/article/details/86633815

好好学习 ,天天向上。Are you ready?在这里插入图片描述

ECMA Script5:ECMA的第五次改版 时间:2009年
'use strict’js的严格模式
目的:
增加更多报错的场合,消除代码运的些不安全之处,保证代码 运行的安全。
提高编译器效率,增加运速度。
为未来新版本的JavaScript做好铺垫。

猜你喜欢

转载自blog.csdn.net/weixin_43654258/article/details/86633815