随笔分类 - node学习
摘要:var express = require('express') var proxy = require('http-proxy-middleware') var app = express() app.use('/api', proxy({ target: 'http://xxxxx', // 目标代理地址 changeOrigin: true, pathRewrite: ...
阅读全文
摘要:app.js todo.ejs todoController.js
阅读全文
摘要:一、express 可以做:web application、api... 特性: 适合写简单的路由系统 集成很多模板引擎 中间件系统 二、请求与响应 三、路由参数 server.js terminal chrome 四、查询字符串 server.js terminal chrome 五、post请求
阅读全文
摘要:index.html app.js server.js router.js handler.js
阅读全文
摘要:一、繁琐的自建路由 app.js server.js 二、重构路由 app.js server.js handler.js router.js 三、页面整体结构
阅读全文
摘要:一、Node简介 node是一个基于v8引擎的JavaScript运行环境。 二、全局对象 setTimeout setInterval clearTimeout clearInterval console setTimeout setInterval clearTimeout clearInter
阅读全文

浙公网安备 33010602011771号