# Functions
MatchAny 匹配任意非空内容.
MatchDigit 匹配数值字符
与正则表达式中的 [0-9]+ 是相同的。.
MatchWord 匹配单词
与正则表达式中的 [a-zA-Z0-9]+ 是相同的。.
No description provided by the author
# Constants
Interceptor 拦截器
这是正则和命名参数的特例,其优先级比两都都要高。.
Named 命名参数,相对于正则,其效率更高,当然也没有正则灵活。比如: {id}/abc 可以匹配 /users/1、/users/2 和 /users/username 等非数值类型.
Regexp 正则表达式,比如: {id:\\d+}/abc 可以匹配 /users/1、/users/2 等任意数值。.
String 普通的字符串类型,逐字匹配,比如 /users/1 只能匹配 /users/1,不能匹配 /users/2.