• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
LilyLiya
博客园    首页    新随笔    联系   管理    订阅  订阅
2021年2月11日
new-Category-default category show
摘要: 动态添加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)
Edit
摘要: 要使用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)
Mongoose with express-1
摘要: show all products, findById, new product, Submit 阅读全文
posted @ 2021-02-11 07:34 LilyLiya 阅读(66) 评论(0) 推荐(0)
Mongoose With Express _0: Basic Setup
摘要: 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)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3