Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES5中“严格模式”与“非严格模式”的区别? #28

Open
aladdin-add opened this issue Jan 11, 2017 · 4 comments
Open

ES5中“严格模式”与“非严格模式”的区别? #28

aladdin-add opened this issue Jan 11, 2017 · 4 comments

Comments

@aladdin-add
Copy link

aladdin-add commented Jan 11, 2017

范围比较大,很适合用来快速打开话题。

@FrankFang
Copy link
Collaborator

参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Strict_mode

@aladdin-add
Copy link
Author

@zhangolve 严格模式(strict mode)对JS的类型系统基本没有影响。

  • 类型系统的修改会引起很大的兼容性问题,而ES5引入的特性基本都是在原来基础上兼容的。

  • =====是ES5之前就有的特性,和严格模式没有关系。

@zhangolve
Copy link

@aladdin-add 学习了,这一块还真没太多了解,也没看二楼链接,就假设自己在面试吧,直接写上了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@FrankFang @zhangolve @aladdin-add and others