标签:pass index src 技术 ons com const int post
index.js app.get(‘/r/:subreddit‘, (req, res) => { const { subreddit } = req.params; res.render(‘subreddit‘, { subreddit }) })
subreddit.ejs <body> <h1>The post is <%= subreddit %> post</h1> </body>
subreddit demo of ejs: pass parameters into pjs
标签:pass index src 技术 ons com const int post
原文地址:https://www.cnblogs.com/LilyLiya/p/14365208.html