用 Node.js 和 HTML5 开发本地应用
Roger Wang
Intel Open Source Technology Center
@wwr
什么是 node-webkit?
•Runtime: writing “native” applications with all
web technologies
•UI: HTML/CSS/JS
•Logic: JS
•Combines Chromium and Node.js
•Native capabilities: Node.js (aka. Node)
@wwr
Node.js
A new JS Runtime beyond browser
•
•Asynchronous
•Modules: (40k)
•Fast Lightweight
•Uses V8 engine
@wwr
Package
@wwr
package.json
@wwr
Platforms
copy /b nw.exe+app.nw foo.exe
cp app.nw nw/Contents/Resources/
cat nw app.nw foo
@wwr
Debug
@wwr
File
@wwr
CPU
@wwr
Menu
@wwr
Tray
@wwr
Shell
@wwr
Kiosk
@wwr
Native
@wwr
Snapshot (experimental)
@wwr
Play
原创力文档

文档评论(0)