app.get(‘/‘,middleware1,middleware2,middleware3,function(req,res,next){
##..code
});
function middleware1(req,res,next){
if(req.query.chain=="123"){
next();
}else{
res.send("jieshu")
}
}
时间: 2024-10-10 10:31:16
app.get(‘/‘,middleware1,middleware2,middleware3,function(req,res,next){
##..code
});
function middleware1(req,res,next){
if(req.query.chain=="123"){
next();
}else{
res.send("jieshu")
}
}