在服务器端,我有以下内容
const join = async (req, h) => {
const gState = add(req.payload.id, req.state.player);
return h.redirect(`/g/${req.payload.id}`);
};
如何在另一个ejs视图req.state.player
中访问/g/${req.payload.id}/c
?
我尝试过<%= req.state.player %>
,但是它不起作用。