express中获取get路由
前端url请求: ‘/community/getCreatedCom’后台:server.get('/community/:id',function(req,res){let id = req.params.id;if(id=="getCreatedCom") {console.log('getCreatedCom');}}) ...
·
前端url请求: ‘/community/getCreatedCom’
后台:
server.get('/community/:id',function(req,res){
let id = req.params.id;
if(id=="getCreatedCom") {
console.log('getCreatedCom');
}
})
更多推荐
已为社区贡献1条内容
所有评论(0)