From c73b4e358c1713e8140f755d79a318b5dab407e9 Mon Sep 17 00:00:00 2001 From: ceramicyu Date: Wed, 20 Oct 2021 08:39:38 +0000 Subject: [PATCH] update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f84820..3647daf 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ $sub->handle('/bar2', function (Mix\Vega\Context $ctx) { | ---- | ---- | | $ctx->request: ServerRequestInterface | 符合PSR的请求对象 | | $ctx->response: ResponseInterface | 符合PSR的响应对象 | -| $ctx->param(string $key): string | 获取路由参数 | +| $$ctx->param(string $key): string | 获取路由参数 | | $ctx->query(string $key): string | 获取url参数,包含路由参数 | | $ctx->defaultQuery(string $key, string $default): string | 获取url参数,可配置默认值 | | $ctx->getQuery(string $key): string or null | 获取url参数, 可判断是否存在 | -- Gitee