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

JS诞生简述 #8

Open
MAJIANYANG666 opened this issue Jul 20, 2017 · 0 comments
Open

JS诞生简述 #8

MAJIANYANG666 opened this issue Jul 20, 2017 · 0 comments

Comments

@MAJIANYANG666
Copy link
Owner

1994年,网景公司(Netscape)发布了Navigator浏览器0.9版,但这个版本的浏览器只能用来浏览,不具备与访问者互动的能力。网景公司急需一种网页脚本语言,使得浏览器可以与网页互动。
Brendan Eich被指定为这种"简化版Java语言"的设计师。
总的来说,他的设计思路是这样的:
  (1)借鉴C语言的基本语法;
  (2)借鉴Java语言的数据类型和内存管理;
  (3)借鉴Scheme语言,将函数提升到"第一等公民"(first class)的地位;
  (4)借鉴Self语言,使用基于原型(prototype)的继承机制。
所以,Javascript语言实际上是两种语言风格的混合产物----(简化的)函数式编程+(简化的)面向对象编程。这是由Brendan Eich(函数式编程)与网景公司(面向对象编程)共同决定的。

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

1 participant