Web 调用 Node 模块 NW.js

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-15 05:59:31

软件介绍

NW.js 可以让你直接在 DOM 上调用所有 Node.js 模块,相当于使用一种新的方法来编写 Web 应用。NW.js 的前身是 node-webkit 。

特性:

  • 使用 HTML5、CSS3、JS 和 WebGL 编写应用

  • 完全支持 Node.js APIs 以及其 第三方模块

  • 性能表现良好,Node 和 WebKit 运行在同一个线程,函数调用更直接,对象在同一个内存堆中,可直接引用

  • 方便打包和分发

  • 支持跨平台

演示程序:https://github.com/zcbenz/nw-sample-apps

示例:

index.html

<!DOCTYPE html>
<html>
  <head>
    <title>Hello World!</title>
  </head>
  <body>
    <h1>Hello World!</h1>
    We are using node.js <script>document.write(process.version)</script>.
  </body>
</html>

package.json:

{
  "name": "nw-demo",
  "main": "index.html"
}

运行:

$ /path/to/nw .  (suppose the current directory contains 'package.json')

本文地址:https://www.codercto.com/soft/d/3604.html

算法设计

算法设计

Jon Kleinberg、Éva Tardos / 张立昂、屈婉玲 / 清华大学出版社 / 2007-3-1 / 75.00元

算法设计,ISBN:9787302143352,作者:(美)克林伯格(Kleinberg,J.),()塔多斯(Tardos,E.) 著,张立昂,屈婉玲 译一起来看看 《算法设计》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换