本页还没有译文
本页 15 段还没译成한국어,下面显示的是英文原文。matchPath
还没翻译译自英文(reactrouter.com)本页 15 段都还没译
matchPath
Framework Data Declarative
Summary
Performs pattern matching on a URL pathname and returns information about the match.
Signature
function matchPath<Path extends string>(
pattern: PathPattern<Path> | Path,
pathname: string,
): PathMatch<ParamParseKey<Path>> | nullParams
pattern
The pattern to match against the URL pathname. This can be a string or a PathPattern object. If a string is provided, it will be
treated as a pattern with caseSensitive set to false and end set to
true.
pathname
The URL pathname to match against the pattern.
Returns
A path match object if the pattern matches the pathname,
or null if it does not match.
AI 翻译查看英文原文