!block!!block!
!URL!!block!
!git!
!CocoaPods!
!“”!
!id!
Get!URL!
[MGJRouter!registerURLPattern:@"mgj://detail?id=id"!toHandler:^(NSDictionary!*route
rParameters)!{
!!!!//#
!!!!NSString!uid!=!routerParameters[@"id"];
}];
!openURL:!!URL!!block!
!GET!!URL!
[MGJRouter!openURL:@"mgj://detail?id=404"];
!MGJRouter!
[MGJRouter!openURL:@"mgj://detail?"!withParam:@{@"id"!:!@"404"}];
[MGJRouter!registerURLPattern:@"mgj://cart/ordercount"!toObjectHandler:^id(NSDictio
nary!*routerParamters){
!!!!return!@42;
}];
!URL!
MGJRouter