From 6d82f183e38dfd503ff16743d8749c1213908630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=A3=AB=E9=BE=99?= Date: Mon, 4 Mar 2019 14:31:59 +0800 Subject: [PATCH] [REV] Modify the style --- index.html | 4269 ++++++++++++++++++++++++++++++++++++++------ requestHandlers.js | 6 +- 2 files changed, 3687 insertions(+), 588 deletions(-) mode change 100644 => 100755 index.html mode change 100644 => 100755 requestHandlers.js diff --git a/index.html b/index.html old mode 100644 new mode 100755 index 6ffbac4..a2701bc --- a/index.html +++ b/index.html @@ -22,583 +22,3682 @@ @@ -638,8 +3737,8 @@ > -
  • MySQL示例
  • -
  • API示例
  • + @@ -687,20 +3786,16 @@

    Nodejs Demo for Rainbond

    target="_blank" >Rainbond 是开源的 - 企业应用云操作系统,支撑企业应用的开发、架构、交付和运维的全流程,通过 - ,支撑企业应用的开发、架构、交付和运维的全流程,通过 + 无侵入架构,无缝衔接各类企业应用,底层资源可以对接和管理IaaS、虚拟机和物理服务器。 + >,无缝衔接各类企业应用,底层资源可以对接和管理IaaS、虚拟机和物理服务器。 diff --git a/requestHandlers.js b/requestHandlers.js old mode 100644 new mode 100755 index d38f471..af32a97 --- a/requestHandlers.js +++ b/requestHandlers.js @@ -1,10 +1,14 @@ //var querystring = require("querystring"); var fs = require("fs"); var mysql = require("mysql"); +var path = require("path"); let mysql_table; +var express =require("express"); +var app = express(); + +app.use(express.static(path.join(__dirname,"static"))) function start(response, postData) { - console.log("Request handler 'start' was called."); //读取HTML文件内容 fs.readFile("./index.html", "utf-8", function(err, data) { if (err) {