没有合适的资源?快使用搜索试试~ 我知道了~
uri-template-router:将 URI 与 URI 模板集合中的模板匹配
共24个文件
js:11个
xhtml:4个
json:2个
需积分: 9 0 下载量 71 浏览量
2021-08-04
13:14:30
上传
评论
收藏 28KB ZIP 举报
温馨提示
URI 模板路由器 将 URI 与一组模板中的匹配。 指定要测试的模板列表,使用{braces}指定变量 无论插入顺序如何,都返回最佳匹配 扩展到任意数量的模板/模式进行测试 支持使用爆炸修饰符的重复表达式 路由存储关联的“matchValue”参数,用于存储任意值(包括对象或函数) 如果返回的匹配不好(例如,如果第一个匹配不在数据库中),则可以恢复状态机评估 例子 var r = new Router ; r . addTemplate ( 'http://example.com/' , { } , 'index' ) ; r . addTemplate ( 'http://example.com/q{n}.html' , { } , 'page_html' ) ; r . addTemplate ( 'http://example.com/q{n}.txt' , { } , 'p
资源推荐
资源详情
资源评论
收起资源包目录
uri-template-router-master.zip (24个子文件)
uri-template-router-master
UNLICENSE 1KB
.gitmodules 122B
.eslintrc.js 517B
test
Result.test.js 2KB
Route.test.js 271B
base.json 5KB
Router.test.js 1KB
uritemplate-negative.test.js 641B
syntax.test.js 792B
uritemplate-positive.test.js 1KB
uritemplate-test
README.md 11KB
docs
demo.xhtml 2KB
usage.xhtml 3KB
index.xhtml 2KB
api.xhtml 6KB
demo.js 4KB
style.css 2KB
gh-publish.sh 494B
tests.js 2KB
.editorconfig 146B
.gitignore 14B
index.js 25KB
package.json 651B
perf.js 2KB
共 24 条
- 1
资源评论
Mika.w
- 粉丝: 32
- 资源: 4592
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功