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 里面。
墨色风雨
喵喵时光机
相关分类