router.get("/meibrain", async (ctx, next) => {
await ctx.render("meibrain", {
imgSrc: "/images/newsbannenr.png",
// koa-router
})
})
router.get("/meibrain", async (ctx, next) => {
await ctx.render("meibrain", {
imgSrc: "/images/newsbannenr.png",
// koa-router
})
})
sequelize or mongoose
intercede the required data on the render function, and then pass it to the second parameter of render.
by the way, what does the MVC you asked have to do with this code?
Previous: On the question of redrawing and rearranging, how to get the rendering completed event?
Next: How does Java read data (including text and picture information) in PDF?