An example of desktop application based on Node-webkit development

Source: Internet
Author: User

1. Download node-webkit:https://github.com/nwjs/nw.js

The file directory is as follows:

2: Create a new Package.json in the file directory ( if the file is present, write the following code directly ), One of the simplest content is as follows ( PS: Comment code please delete ):

{

"Main": "index.html",//read-in file of program

"Name": "Sample-app",//the contents of the name by the way write

"Window": {

"Toolbar": false,//whether the menu bar is allowed to appear

"Resizable": false,//whether to allow dragging of window size

"width": 370,//width of window

"Height": 220//height of window

}

}

3, in this directory new index.html, HTML file part code:

4, double-click Run Nw.exe;

5.:

--Node-webkit: The ability to operate local files with Nodejs, as well as the rendering function of the page; have to admire the strong Google

An example of desktop application based on Node-webkit development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.