router.get('/',function (req,res,next) {
res.render('index');
})
router.get('/a',function (req,res,next) { // axios 请求})第一个路由是路径请求渲染index.html 在index.html ,在html获取某些值后请求/a 传到node。在/a里面请求服务器获取到数据,那如何将数据渲染到index.html 里面。
- 2 回答
- 0 关注
- 728 浏览
添加回答
举报
0/150
提交
取消
