摘要:
bootstrap_navbar + express 阅读全文
posted @ 2021-02-03 13:37
LilyLiya
阅读(217)
评论(0)
推荐(0)
摘要:
app.use(express.static(path.join(__dirname, 'public'))); 阅读全文
posted @ 2021-02-03 12:21
LilyLiya
阅读(46)
评论(0)
推荐(0)
摘要:
...data 阅读全文
posted @ 2021-02-03 11:45
LilyLiya
阅读(148)
评论(0)
推荐(0)
摘要:
simple example: baby cats lists 阅读全文
posted @ 2021-02-03 09:37
LilyLiya
阅读(46)
评论(0)
推荐(0)
摘要:
<% %> VS <%= %> 阅读全文
posted @ 2021-02-03 09:17
LilyLiya
阅读(171)
评论(0)
推荐(0)
摘要:
const { subreddit } = req.params; 阅读全文
posted @ 2021-02-03 09:04
LilyLiya
阅读(65)
评论(0)
推荐(0)
摘要:
在ejs文件中使用js的数学公式,生成随机数字。 <%= Math.floor(Math.random()*10) + 1 %> res.render('random.ejs', {bubble: num}) <%= bubble %> 阅读全文
posted @ 2021-02-03 08:37
LilyLiya
阅读(86)
评论(0)
推荐(0)
摘要:
Request & Response Objects; Express Routing Basics; Express Path Parameters; Working With Query Strings; Auto-Restart With Nodemon 阅读全文
posted @ 2021-02-03 08:05
LilyLiya
阅读(76)
评论(0)
推荐(0)
摘要:
app.set('view engine', 'ejs'); res.render('home.ejs') ; setting the views directory; const path = require('path'); app.set('views', path.join(__dirname, '/views')) //__dirname is where index.js is located 阅读全文
posted @ 2021-02-03 08:03
LilyLiya
阅读(70)
评论(0)
推荐(0)
浙公网安备 33010602011771号