request.function在web2py中的用途是什么。我是web2y的初学者,在教程中遇到了这些问题
if not request.function=='first' and not session.visitor_name:
redirect(URL('first'))request.function是用来干什么的?
发布于 2016-08-02 08:58:48
摘自文档。
request.function: the name of the requested function.
所以在你的情况下。
if not request.function=='first' and not session.visitor_name:
redirect(URL('first'))它正在检查函数的名称是否不是first。
https://stackoverflow.com/questions/38712360
复制相似问题