路由

get请求访问一个网址

app.get("网址",function(req,res){


});

post请求访问一个网址

app.post("网址",function(req,res){


});

如果想处理这个网址的任何method的请求,那么写all

app.all("/",function(){

});

results matching ""

    No results matching ""