<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          AppJS開(kāi)發(fā)桌面應(yīng)用的 JS 庫(kù)

          聯(lián)合創(chuàng)作 · 2023-09-28 07:09

          AppJS 是一個(gè)令人振奮的 JavaScript 庫(kù),使我們能夠使用 Web 技術(shù)快速開(kāi)發(fā)桌面應(yīng)用程序(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();
          
          });
          瀏覽 24
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  婷婷无码在线 | 五月婷婷丁香在线导航 | 伊人操逼 | 91麻豆精品一区二区三区 | 99热在线观看 |