在阅读程序的时候,发现javascript直接调用C语言做的API函数。
这是为什么呢?

同时,sourcetree中也有一些opensource,其中包含
spidermonkey
yuicompressor
libcurl

spidermonkey就是Javascript和C的引擎。
HP:http://www.mozilla.org/js/spidermonkey/
SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript.

转载:
http://blog.csdn.net/wangweixing2000/archive/2008/01/18/2051890.aspx
http://www.ibm.com/developerworks/cn/linux/shell/js/js_engine/index.html



上记转载文章中,不准确的地方修正:
不是firefox,firefox是mozilla的产品之一。
实际上用的是spidermonkey来使得,Javascript程序调用C语言函数。
11-21 13:01