获取当前页指定参数
$id = $request->param('id');
mixed Core_HttpIO::param( [ string $key = null , mixed $default = null ] )
参数列表
参数 类型 描述 默认值 $key
string
Key of the value null $default
mixed
Default value if the key is not set null
mixed
public static function param($key = null, $default = null)
{
if (null===$key)
{
return HttpIO::$params;
}
return isset(HttpIO::$params[$key]) ? HttpIO::$params[$key] : $default;
}