ParamMap
A map that provides access to the required and optional parameters specific to a route. The map supports retrieving a single value with get() or multiple values with getAll().
interface ParamMap {
keys: string[]
has(name: string): boolean
get(name: string): string | null
getAll(name: string): string[]
}
参见
属性
| 属性 | 说明 |
|---|---|
keys: string[] | 只读 Names of the parameters in the map. |
方法
Reports whether the map contains a given parameter. |
Retrieves a single value for a parameter. |
Retrieves multiple values for a parameter. |