开发桌面应用的 JS 库 AppJS

码农软件 · 软件分类 · GUI开发框架 · 2019-08-08 17:44:44

软件介绍

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();

});

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

UML参考手册

UML参考手册

兰博 / UML China / 机械工业出版社 / 2005-8 / 75.00元

《UML参考手册》在第1版的基础上进行了重大更新和扩展。UML的创建者James Rumbaugh、Ivar Jacobson和Grady Booch,清晰完整地讲述了UML的所有概念,包括对序列图、活动模型、状态机、组件、类和组件的内部结构以及特性描述的主要修订。手册式结构不仅有助于读者对UML的概念进行规范化的学习与理解,更为广大程序开发人员、系统用户和工程技术人员提供了方便快捷的查询方式。无......一起来看看 《UML参考手册》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

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

UNIX 时间戳转换

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具