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

Update class.md #435

Merged
merged 2 commits into from
Jun 20, 2017
Merged

Update class.md #435

merged 2 commits into from
Jun 20, 2017

Conversation

dancon
Copy link
Contributor

@dancon dancon commented Jun 19, 2017

[UPDATE] 增加对 ‘proto’ 属性的说明;

[UPDATE] 增加对 ‘__proto__’ 属性的说明;
[UPDATE] 增加 __proto__ 属性的提醒说明
@ruanyf
Copy link
Owner

ruanyf commented Jun 20, 2017

Thanks

@ruanyf ruanyf merged commit e3a76b6 into ruanyf:gh-pages Jun 20, 2017
@hax
Copy link

hax commented Jul 20, 2017

__proto__ 在 附录B 中,仍然是标准的组成部分,只是理论上非浏览器的js引擎可以选择不实现,但实际上并没有某个实现特意不包括这些特性。因此

并不是语言本身的特性,这是各大厂商具体实现时添加的私有属性,虽然目前很多现代浏览器的JS引擎中都提供了这个私有属性,但依旧不建议在生产中使用该属性,避免对环境产生依赖。

这段描述反而是不恰当的。

@ruanyf
Copy link
Owner

ruanyf commented Jul 20, 2017

标准委员会不提倡使用__proto__,否则也不会写在附录里面了。

我觉得,大家知道这个属性就可以了,能不用就不用。

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

Successfully merging this pull request may close these issues.

None yet

3 participants