开发桌面应用的 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

知识发现

知识发现

史忠植 / 2011-1 / 59.00元

《知识发现(第2版)》全面而又系统地介绍了知识发现的方法和技术,反映了当前知识发现研究的最新成果和进展。全书共分15章。第1章是绪论,概述知识发现的重要概念和发展过程。下面三章重点讨论分类问题,包括决策树、支持向量机和迁移学习。第5章阐述聚类分析。第6章是关联规则。第7章讨论粗糙集和粒度计算。第8章介绍神经网络,书中着重介绍几种实用的算法。第9章探讨贝叶斯网络。第10章讨论隐马尔可夫模型。第11章......一起来看看 《知识发现》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具