Action=trim(request("Action")) if Action="" then Action="ShowInfo" end if

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/05 03:51:52

Action=trim(request("Action")) if Action="" then Action="ShowInfo" end if

Action = trim(request("Action"))
从request集合中获取action的值,并去掉前后可能存在的空格,赋值给Action变量.
if Action="" then Action="ShowInfo" end if
如果Action变量值为空字符串,那么将"ShowInfo赋值给它,一般是用于默认动作.