Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 django 中,我可以很容易地测试它是否是 post action
if request.POST: do whatever
如何检查它是 web2py 中的 POST 操作
请求方法可从以下位置获得:
request.env.request_method
但对于这种情况,
if request.post_vars: #whatever
可能更容易