摘要:
动态添加category const categories = ['fruit', 'vagetable', 'diary', 'unique']; app.get('/products/new', (req, res) => { res.render('products/new', { categ 阅读全文
posted @ 2021-02-11 13:11
LilyLiya
阅读(111)
评论(0)
推荐(0)
摘要:
要使用Put之前,在index.js中require method-overrise
const methodOverride = require('method-override')
app.use(methodOverride('_method'))
阅读全文
posted @ 2021-02-11 10:24
LilyLiya
阅读(266)
评论(0)
推荐(0)
摘要:
show all products, findById, new product,
Submit
阅读全文
posted @ 2021-02-11 07:34
LilyLiya
阅读(66)
评论(0)
推荐(0)
摘要:
Basic Setup (Mongoose + Express): mkdir test cd test npm init -y npm i express ejs mongoose touch index.js mkdir views nodemon index.js index.jsconst 阅读全文
posted @ 2021-02-11 01:56
LilyLiya
阅读(48)
评论(0)
推荐(0)
浙公网安备 33010602011771号