ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
##**Response基类** * * * * * ###*类名* **\msqphp\base\response\Response** * * * * * ###*方法* ~~~ /** * @param string $url 跳转地址 * @param int $code 跳转代码 * @param int $time 等待时间 * @param string $msg 信息 * @param string $charset 字符编码 * @param miexd $data 数据 * @param string $root 根节点 * @param bool $end 是否退出 */ //页面重定向 Response::redirect(string $url, int $code = 301); //页面跳转 Response::jump(string $url, int $time = 0, string $msg = ''); //成功页面 Response::success(string $msg, int $time = 3, string $url = '') //错误页面 Response::error(string $msg, int $time = 3, string $url = '') //不可用页面(维护) Response::unavailable(); //JS窗口提示并跳转 Response::alert(string $msg, string $url = '', string $charset='utf-8'); //xml格式返回 Response::xml($data, string $root = 'root', bool $end = true); //json格式返回 Response::json($data, bool $end = true); ~~~