下载
其它的相关程序 Electron
http://nwjs.io/
http://nwjs.io/downloads/
或者
npm install nw -g
文档
http://docs.nwjs.io/en/latest/For%20Users/Getting%20Started/
说明
http://damoqiongqiu.iteye.com/blog/2010720
使用说明:
package.json
{
"name": "helloworld",
"main": "index.html"
}
index.html
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<script>
alert("This is example2!");
</script>
</body>
</html>
============================
测试,文件放在在nw目录下运行nw即可
或者 nw 目录名
=============================
打成zip包 复制到nw目录,拖动包到nw.exe上即可运行;
============================
生成exe发行包
命令行
copy /b nw.exe+hello.zip hello.exe
=========================
可以直接使用node模块
<script>document.write(process.version)</script>.
多页面使用a 直接导航即可