其他分享
首页 > 其他分享> > express中使用ejs注意点

express中使用ejs注意点

作者:互联网

app.engine('.html',require('ejs').__express);
app.set('view engine', 'html');
// 配置第三方中间件 获取post提交的数据
const bodyParser = require('body-parser')

app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

标签:body,app,express,中间件,html,bodyParser,注意,ejs
来源: https://www.cnblogs.com/bitlei/p/14398018.html