我在后端路由代码中定义的变量,在前端页面js中可以使用?? 怎么传过去的
可以通过res.render({title: 'Passionate Music', music: names})传递至前端页面中,再利用js获取title,name值