本文介绍了JavaScript用什么语言编写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果它是一种脚本语言,顾名思义,它必须以较低级的语言编写,对吗?就像PHP用C编写的方式一样,JavaScript是用什么语言编写的?

If it's a scripting language as the name implies it must be written in a lower level language right? Like how PHP is written in C what language is JavaScript written in?

推荐答案

JavaScript只是一种标准,更正式地称为 ECMAScript .可以像任何标准一样,以任何语言来实现.

Javascript is just a standard, more formally known as ECMAScript. It can be implemented in any language, just like any standard.

Chrome的Javascript引擎 V8 用C ++编写

Chrome's Javascript engine, V8, is written in C++.

在项目页面上:

V8实现了ECMA-262(第5版)中指定的ECMAScript,并且在Windows(XP或更高版本),Mac OS X(10.5或更高版本)和Linux上运行使用IA-32,x64或ARM处理器的系统.

V8 implements ECMAScript as specified in ECMA-262, 5th edition, and runs on Windows (XP or newer), Mac OS X (10.5 or newer), and Linux systems that use IA-32, x64, or ARM processors.

Firefox的Javascript引擎 SpiderMonkey (现在是TraceMonkey)也被编写C ++.正如下面的专家所说, Rhino 用Java编写.

Firefox's Javascript engine, SpiderMonkey (and now TraceMonkey) is also written in C++. And as maerics below said, Rhino is written in Java.

这篇关于JavaScript用什么语言编写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 21:15