index.html
<a href="/m1/doDelete?id={{@ $value._id}}" type="button" class="btn btn-danger" >删除</a>
m1/doDelete.js
const MembersModel = require("../../models/Members");
const router = require("koa-router")();
router.get("/m1/doDelete",async ctx=>{
var {id} = ctx.query
await MembersModel.deleteOne({_id:id})
ctx.redirect('/m1')
})
module.exports = router;