AppJS开发桌面应用的 JS 库
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(); });
评论
wxPHP桌面应用开发
wxPHP即"wxWidgetsforPHP",它捆绑了wxWidgets这个跨平台的库,让你可以用php来开发桌面应用。它可以在Windows,Linux和MacOSX用同样的代码运行,并且接近原生
wxPHP桌面应用开发
0
LTFrameHTML桌面应用开发引擎
LTFrame是一个基于WEBKIT的windows应用程序开框架,您可以使用HTML.CSS,javascript,这些WEB网页开发技术去开发应用程序,在开发中,您还可以使用HTML5,和CSS3
LTFrameHTML桌面应用开发引擎
0
Gluon.js桌面应用开发框架
Gluon是用于开发桌面应用的框架,基于系统已安装的浏览器(非webviews)和Node.js进行构建,可作为Electron的替代方案。和常见的桌面开发框架不同,Gluon没有内置浏览器内核(如C
Gluon.js桌面应用开发框架
0