bind() bind(string|array $name, string $class = null) : object 绑定类的静态代理 Parameters string|array $name 类标识 string $class 类名 Returns object —
instance() instance(mixed ...$args) : mixed 带参数实例化当前Facade类 Parameters mixed $args variadic Returns mixed —
make() make(string $class, array|true $args = [], bool $newInstance = false) : mixed 调用类的实例 Parameters string $class 类名或者标识 array|true $args 变量 bool $newInstance 是否每次创建新的实例 Returns mixed —
__callStatic() __callStatic(mixed $method, mixed $params) : mixed Parameters mixed $method mixed $params Returns mixed —
create() create(mixed $data = '', string $type = '', int $code = 200, array $header = [], array $options = []) : \think\response static 创建Response对象 Parameters mixed $data = '' string $type = '' int $code = 200 array $header = [] array $options = [] Returns \think\response —
options() options(mixed $options = []) : \think\Response static 输出的参数 Parameters mixed $options = [] Returns \think\Response —
data() data(mixed $data) : \think\Response static 输出数据设置 Parameters mixed $data Returns \think\Response —
header() header(mixed $name, string $value = null) : \think\Response static 设置响应头 Parameters mixed $name string $value = null Returns \think\Response —
content() content(mixed $content) : \think\Response static 设置页面输出内容 Parameters mixed $content Returns \think\Response —
code() code(int $code) : \think\Response static 发送HTTP状态 Parameters int $code Returns \think\Response —
lastModified() lastModified(string $time) : \think\Response static LastModified Parameters string $time Returns \think\Response —
expires() expires(string $time) : \think\Response static expires Parameters string $time Returns \think\Response —
eTag() eTag(string $eTag) : \think\Response static eTag Parameters string $eTag Returns \think\Response —
cacheControl() cacheControl(string $cache) : \think\Response static 页面缓存控制 Parameters string $cache Returns \think\Response —
contentType() contentType(string $contentType, string $charset = 'utf-8') : \think\Response static 页面输出类型 Parameters string $contentType string $charset = 'utf-8' Returns \think\Response —
createFacade() createFacade(string $class = '', array $args = [], bool $newInstance = false) : object 创建Facade实例 Parameters string $class 类名或标识 array $args 变量 bool $newInstance 是否每次创建新的实例 Returns object —