subreddit demo of ejs: pass parameters into pjs
2021-02-05 04:14
阅读:587
标签:pass index src 技术 ons com const int post subreddit demo of ejs: pass parameters into pjs 标签:pass index src 技术 ons com const int post 原文地址:https://www.cnblogs.com/LilyLiya/p/14365208.html
index.js
app.get(‘/r/:subreddit‘, (req, res) => {
const { subreddit } = req.params;
res.render(‘subreddit‘, { subreddit })
})
subreddit.ejs
body>
h1>The post is = subreddit %> posth1>
body>
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:subreddit demo of ejs: pass parameters into pjs
文章链接:http://soscw.com/index.php/essay/51161.html
文章标题:subreddit demo of ejs: pass parameters into pjs
文章链接:http://soscw.com/index.php/essay/51161.html
评论
亲,登录后才可以留言!