标签:async/await

Node.js+Koa2+art-template ctx.render()方法提示Not Found解决方案

Node.js+Koa2+art-template ctx.render()方法提示Not Found解决方案

一个Node.js项目采用了Node.js+Koa2+art-template架构,在路由中利用ctx.render()方法渲染模板的时候,浏览器中访问提示Not Found。 错误写法如下; router.get('/',(ctx,next)=>{ msgModel.fin

admin admin 2018-08-06
3.7K+ 0 0