摘要:
Koa 使用延迟函数 只需要在代码中加入 Promise 即可 router.post('/save', async (ctx, next) => { var data = ctx.request.body; async function delay(time) { return new Promi 阅读全文
posted @ 2021-11-25 18:13
我不是张三
阅读(143)
评论(0)
推荐(0)
摘要:
记录一下 如何在EJS模板中使用Koa传来的 数据 <button onclick="Tabclick(<%= JSON.stringify(item) %>)">test</button> 如果本章内容为您提供了帮助 请点击推荐哦 阅读全文
posted @ 2021-11-25 15:14
我不是张三
阅读(499)
评论(0)
推荐(0)