3 回答
Rount::get('user/{id}' , function($id){
return 'User-id-'.$id;
});
Rount::get('user/{name?}' , function($name){
return 'User-name-'.$name;
});
url: http://localhost/public/user/abcuser/abc
会输出什么?
举报
0/150
提交
取消
2017-07-11
Rount::get('user/{id}' , function($id){
return 'User-id-'.$id;
});
Rount::get('user/{name?}' , function($name){
return 'User-name-'.$name;
});
url: http://localhost/public/user/abcuser/abc
会输出什么?
举报