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 里面。
婷婷同学_
墨色风雨
喵喵时光机
随时随地看视频慕课网APP