- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://appjs.com/
- 软件文档: https://github.com/appjs/appjs/wiki
软件介绍
AppJS 是一个令人振奋的 JavaScript 库,使我们能够使用 Web 技术快速开发桌面应用程序(HTML,CSS和JavaScript)。AppJS 使用 Node.js 做为后端支撑。
示例代码:
/**
* Begin by requiring appjs.
**/
var app = require('appjs');
// serve files to browser requests to "http://appjs/*"
app.serveFilesFrom(path.resolve(__dirname, 'public'));
/**
* There are other routing functions that you can use like `post`, `get` or `all`.
**/
app.post('/',function(req,res,next){
res.send('Hey! How are you '+req.post('firstname'));
})
/**
* Create a window and point it to http://appjs/. This url is a special url.
* It is not a http request. AppJS manages these requests manually using routers you define.
**/
var window = app.createWindow('http://appjs/', {
width : 640,
height : 460,
left : -1, // optional, -1 centers
top : -1, // optional, -1 centers
autoResize : false, // resizes in response to html content
resizable : true, // controls whether window is resizable by user
showChrome : true, // show border and title bar
opacity : 1, // opacity from 0 to 1 (Linux)
alpha : false, // alpha composited background (Windows & Mac)
fullscreen : false, // covers whole screen and has no border
disableSecurity : true // allow cross origin requests
});
/**
* This event is fired when window is ready and loading the first page is finished.
**/
window.on("ready",function(){
console.log("Event Ready called");
this.frame.show();
});
面向对象葵花宝典:思想、技巧与实践
李运华 编著 / 电子工业出版社 / 2015-12 / 69
《面向对象葵花宝典:思想、技巧与实践》系统地讲述了面向对象技术的相关内容,包括面向对象的基本概念、面向对象开发的流程、面向对象的各种技巧,以及如何应用面向对象思想进行架构设计。在讲述相关知识或技术的时候,除了从“是什么”这个角度进行介绍外,更加着重于从“为什么”和“如何用”这两个角度进行剖析,力争让读者做到“知其然,并知其所以然”,从而达到在实践中既能正确又能优秀地应用面向对象的相关技术和技巧。 ......一起来看看 《面向对象葵花宝典:思想、技巧与实践》 这本书的介绍吧!
