ijs*_*jse 22 node.js express
使用expressjs,app.all()处理所有请求,现在我想要请求方法类型(get或post)app.all(),但我不知道如何做到这一点.我一直在搜索expressjs文档,但没有找到任何有价值的东西.
app.all()
get
post
感谢您的回答.
ijs*_*jse 47
我找到了!req.method会做的,这么容易!
归档时间:
12 年,8 月 前
查看次数:
12231 次
最近记录:
8 年 前