var express = require('express');
var app = express();
var bodyParser = require('body-parser');
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
// parse application/json
app.use(bodyParser.json())
app.all('/', function(req, res) {
res.send(req.body.title + req.body.text);
}); app.listen(3000);
相关文章
- KoaHub.js -- 基于 Koa.js 平台的 Node.js web 快速开发框架之koahub
- 19. Remove Nth Node From End of List(移除倒数第N的结点, 快慢指针)
- 0.1Linux系统开发Angular项目一一首次运行环境的安装(chrome ,terminator,git,node)
- node设置cookie
- node 裁剪图片
- node的实践(项目二)
- node.js、js读取excel、操作excel、创建excel之js-xlsx.js
- node实现缓存
- nacos操作服务下线时报错The Raft Group [naming_instance_metadata] did not find the Leader node;caused: The Raf
- Nacos注册失败,ConsistencyException NoLeaderException: The Raft Group [*] did not find the Leader node