Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Sep 24, 2024
1 parent 873cb8b commit 999be4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/docs/controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class UserController {
}
```

::caution
:::caution
**注意** EggJS 和其他框架不同,在 当 Query String 中的 key 重复时,`ctx.query` 只取 key 第一次出现时的值,后面再出现的都会被忽略。

比如 `GET /user?uid=1&uid=2` 通过 `ctx.query` 拿到的值是 `{ uid: '1' }`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class UserController {
}
```

::caution
:::caution
**Note** EggJS is different from other frameworks. When the key in the Query String is repeated, `ctx.query` only takes the value of the first occurrence of the key, and subsequent occurrences will be ignored.

For example, the value obtained by `GET /user?uid=1&uid=2` through `ctx.query` is `{ uid: '1' }`.
Expand Down

0 comments on commit 999be4c

Please sign in to comment.