Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

求助koa2如何接收delete请求的参数

$
0
0

后端代码

router.prefix('/blogType');
router.delete('/', async (ctx)=>{
    ctx.body= '';
})

前端代码

this.axios("delete", "/blogType", {
        data:{
            _id: _id
        }
      })
        .then(res => {
         
        })
      

Viewing all articles
Browse latest Browse all 14821

Trending Articles