摘要: const express=require('express'); const bodyParser=require('body-parser'); const multer=require('multer'); const fs=require('fs'); const pathLib=require('path'); var objMulter=multer({dest: './www... 阅读全文
posted @ 2019-11-01 17:40 LIULIULIU666 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ejs语法案例 阅读全文
posted @ 2019-11-01 17:19 LIULIULIU666 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 模板引擎: jade -破坏式、侵入式,强依赖;用了之后不能随便用别的引擎 ejs - 温和、非侵入时、弱依赖 jade使用 ejs使用 jade语法: 自动识别单标签 阅读全文
posted @ 2019-11-01 17:14 LIULIULIU666 阅读(248) 评论(0) 推荐(0) 编辑
摘要: express和body-parser GET请求无需中间件 req.query POST请求需要中间件body-parser 链式操作next 阅读全文
posted @ 2019-11-01 14:36 LIULIULIU666 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 系统模块:http://nodejs.cn/api/events.html 自定义模块: require 请求:引入模块 module 模块:批量输出 exports 输出:单独输出 express基础应用 // 下载express cnpm install express const expres 阅读全文
posted @ 2019-11-01 11:26 LIULIULIU666 阅读(322) 评论(0) 推荐(0) 编辑