语法:Route::rule('路由表达式','路由地址','请求类型','路由参数(数组)','变量规则(数组)')
GET,POST,DELETE,PUT,*
Route::rule("userIs","user/user/userIs","POST"); 简化 Route::POST("userIs","user/user/userIs")
Route::any(); any代表*
get 传参
一: Route::rule("userIs/:id","user/user/userIs","POST")
获取参数 url/123?name=xiao
public function userIs($id,$name){
echo $id;
echo $name;
}
POST 传参