Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了router block 传参无效的问题 #12

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

shiweifu
Copy link
Contributor

当使用

HHRouterBlock block = [[HHRouter shared] matchBlockMerege:@"/testurl"];

这种方式进行匹配时,得到了正确的block,然后通过block得到对象:

block(@{@"name": @"abc"});

block(nil);

以上两种得到的结果没有区别,是因为在 matchBlock 的时候,并没有对aParams进行调用(但进行了预留)

当使用

  HHRouterBlock block = [[HHRouter shared] matchBlockMerege:@"/testurl"];

这种方式进行匹配时,得到了正确的block,然后通过block得到对象:

block(@{@"name": @"abc"});

block(nil);

以上两种得到的结果没有区别,是因为在 matchBlock 的时候,并没有对aParams进行调用(但进行了预留)
smhjsw added a commit that referenced this pull request Apr 29, 2015
修复了router block 传参无效的问题
@smhjsw smhjsw merged commit db4cc63 into lightory:master Apr 29, 2015
HarrisonXi pushed a commit to HarrisonXi/ABRouter that referenced this pull request Apr 10, 2019
修复了router block 传参无效的问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants