- 授权协议: AGPL
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: http://mujs.com/
- 软件文档: http://mujs.com/docs/reference
软件介绍
MuJS 是一个轻量级的 JavaScript 解释器,用于嵌入到其他的软件中提供脚本执行功能。使用可移植 C 编写,实现了 ECMA-262 规定的 ECMAScript 标准。
开发 MuJS 的原因是 V8、SpiderMonkey 和 JavaScriptCore 都太大太复杂了,MuJS 提供一个非常精简、无错和简单的实现。
示例代码:
#include <stdio.h> #include <mujs.h> static void hello(js_State *J) { const char *name = js_tostring(J, 1); printf("Hello, %s!\n", name); js_pushundefined(J); } int main(int argc, char **argv) { js_State *J = js_newstate(NULL, NULL); js_newcfunction(J, hello, 1); js_setglobal(J, "hello"); js_dostring(J, "hello('world');", 0); js_freestate(J); }
Zero to One
Peter Thiel、Blake Masters / Crown Business / 2014-9-16 / USD 27.00
“This book delivers completely new and refreshing ideas on how to create value in the world.” - Mark Zuckerberg, CEO of Facebook “Peter Thiel has built multiple breakthrough companies, and ......一起来看看 《Zero to One》 这本书的介绍吧!