- 授权协议: 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);
}
The Web Designer's Idea Book, Vol. 2
Patrick McNeil / How / 2010-9-19 / USD 30.00
Web Design Inspiration at a Glance Volume 2 of The Web Designer's Idea Book includes more than 650 new websites arranged thematically, so you can easily find inspiration for your work. Auth......一起来看看 《The Web Designer's Idea Book, Vol. 2》 这本书的介绍吧!
