一:代码: 1.1 入口文件: index.js var server = require('./server'); var router = require("./router"); var requestHandlers = require("./requestHandlers"); var handle = {}; handle["/"] = requestHandlers.start; handle["/start"]…
服务端代码: var express = require('express'); var swig = require('swig'); //1.引入multer模块 var multer = require('multer'); var fs = require('fs'); var path = require('path'); var redis = require('./modules/redis'); var app = express(); app.use(express.bodyP…