跳至主要內容
安装 Express
cnpm install express --save

需要和express框架一起安装的模块:

  • body-parser node.js中间件,用于处理json,raw,text和url编码的数据。 四种不同的处理方法: bodyParser.json(options) 处理json数据 bodyParser.raw(options) Buffer流数据 bodyParser.text(options) 文本数据 bodyParser.urlencoded(options) UTF-8的编码数据

CoderAn大约 1 分钟后端开发NodeExpress