我的代码如下:Route::rule('a', 'index/Index/a');Route::rule('a/:type', 'index/Index/b');我期望第一个路由表达式到地址a,第二个路由表达式到地址b。实际是都会到地址a。
1 回答

汪汪一只猫
TA贡献1898条经验 获得超8个赞
应该需要完全匹配Route::rule('a$', 'index/Index/a');
Route::rule('a/:type$', 'index/Index/b');
- 1 回答
- 0 关注
- 512 浏览
添加回答
举报
0/150
提交
取消