日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
移動(dòng)端基于動(dòng)態(tài)路由的架構(gòu)設(shè)計(jì)

好久好久沒寫過文章了,一是最近項(xiàng)目太忙了,沒時(shí)間寫。二是也沒有時(shí)間學(xué)習(xí)新的東西,想寫點(diǎn)什么卻又無從下筆。一味的去寫這個(gè)API怎么用,那個(gè)新技術(shù)怎么用,又顯的沒意思。沒有項(xiàng)目經(jīng)驗(yàn)總結(jié)的技術(shù)知識(shí)講解,總感覺有些蒼白。

目前成都創(chuàng)新互聯(lián)已為近1000家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)絡(luò)空間、網(wǎng)站托管維護(hù)、企業(yè)網(wǎng)站設(shè)計(jì)、且末網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

最近在做混合App開發(fā)這塊,從開始的ionic 框架,到后來的mui框架,讓我在混合開發(fā)這塊有了更深的理解,如果在這塊要寫點(diǎn)什么無非漫天蓋地的這個(gè)指令怎么用,那個(gè)模版怎么用,數(shù)據(jù)怎么進(jìn)行雙向綁定,等等,但是這些網(wǎng)上已經(jīng)很多資料了,等不太忙了,我想我會(huì)總結(jié)一篇這些框架的使用心得吧。但是我今天不講這個(gè),我們來談一談在原生app中(iOS android)如何使用動(dòng)態(tài)路由機(jī)制來搭建整個(gè)app的框架。

路由機(jī)制在web開發(fā)中是比較常見的,app開發(fā)中還是很少聽到這種概念的,目前有些大公司采用的組件化開發(fā)(手淘,攜程,蘑菇街等),倒是跟我們講的有很多相同之處,不過它們的比較復(fù)雜,而且網(wǎng)上很多組件化開發(fā),路由機(jī)制,沒有一個(gè)能給出完整代碼示例的,看著讓人云里霧里的。索性自己就借鑒它們的思想,加上一點(diǎn)個(gè)人的理解,搞出了一個(gè)簡單實(shí)用的可行性demo出來。我們主要介紹以下三方面內(nèi)容:

1 什么是動(dòng)態(tài)路由

2 它能解決我們什么問題

3 如何在項(xiàng)目中實(shí)現(xiàn)

一 什么是動(dòng)態(tài)路由

原生開發(fā)沒這概念,我們借助angular路由機(jī)制來解釋這一概念,所謂路由,就是一套路徑跳轉(zhuǎn)機(jī)制,事先通過配置文件定義好一個(gè)路徑映射文件,跳轉(zhuǎn)時(shí)根據(jù)key去找到具體頁面,當(dāng)然angular會(huì)做一些緩存,頁面棧的管理等等一些操作,它大致的定義是這樣的

 
 
 
 
  1. angular.module('app',[]) 
  2.            .config('$routeProvider',function  ($routeProvider) { 
  3.                $routeProvider 
  4.                    .when('/',{ 
  5.                        templateUrl:'view/home.html', 
  6.                        controller:'homeCtrl' 
  7.                        } 
  8.                        ) 
  9.                    .when('/',{ 
  10.                        templateUrl:'view/home.html', 
  11.                        controller:'homeCtrl' 
  12.                        } 
  13.                        ) 
  14.                    .when('/',{ 
  15.                        templateUrl:'view/home.html', 
  16.                        controller:'homeCtrl' 
  17.                        } 
  18.                        ) 
  19.                    .ontherwise({ 
  20.                        redirective:'/' 
  21.                    }) 
  22.            })  

config函數(shù)是一個(gè)配置函數(shù)。在使用

$routeProvider這樣的一個(gè)服務(wù)。when:代表當(dāng)你訪問這個(gè)“/”根目錄的時(shí)候 去訪問 templateUrl中的那個(gè)模板。 controller可想已知,就是我們配套的controller,就是應(yīng)用于根目錄的這個(gè) 模板時(shí)的controller。

ontherwise 就是當(dāng)你路徑訪問錯(cuò)誤時(shí),找不到。***跳到這個(gè)默認(rèn)的 頁面。

為此我們可以總結(jié)一下幾個(gè)特點(diǎn):

1 一個(gè)映射配置文件

2 路徑出錯(cuò)處理機(jī)制

這就是路由的基本意思,我們看看,在原生開發(fā)中,采用此種方式,他能解決我們什么問題。

二 它能解決我們什么問題

首先我們來比較一下我們以前的結(jié)構(gòu)模式以及與 加入路由機(jī)制后的項(xiàng)目結(jié)構(gòu),實(shí)現(xiàn)路由機(jī)制,不僅需要一個(gè)映射文件,還需要一套路由管理機(jī)制,那么采用路由機(jī)制,我們的項(xiàng)目架構(gòu)就跟原來不一樣了,如下圖:

原先業(yè)務(wù)之間的調(diào)用關(guān)系.png

加入路由后的頁面調(diào)用關(guān)系.png

接下來我們看一下平時(shí)我們采用的頁面跳轉(zhuǎn)方法:

iOS 下

 
 
 
 
  1. [self presentViewController:controller animated:YES completion:nil]; 
  2. [self.navigationController pushViewController:controller animated:YES];  

android 下

 
 
 
 
  1. Intent intent = new Intent(this, A.class); startActivity(intent); startActivityForResult(Intent intent, Int requestCode) 

我們看一下它有哪些缺點(diǎn):

(1)都要在當(dāng)前頁面引入要跳轉(zhuǎn)頁面的class 類。這就造成了頁面的耦合性很高。

(2)遇到重大bug,不能夠及時(shí)的修復(fù)問題,需要等待更新發(fā)版后才能解決。

(3)推送消息,如果入口沒有關(guān)與頁面的引入處理,則不能跳轉(zhuǎn)到指定頁面。

引入路由機(jī)制后我們能否解決這些問題呢?

試想一下,如果我們通過一個(gè)配置文件來映射頁面跳轉(zhuǎn)關(guān)系,而且通過反射機(jī)制來取消頭文件的引入問題,是不是我們就可以解決以上那些弊端了呢,比如,我們線上應(yīng)用出現(xiàn)bug, 導(dǎo)致某個(gè)頁面一打開,app就跪了,那我們是不是就可以通過更新路由配置文件,把它映射到另一個(gè)頁面去:一個(gè)錯(cuò)誤提示文件,或者一個(gè)線上H5能實(shí)現(xiàn)相同功能的頁面。這樣的話,原生app也具有了一定的動(dòng)態(tài)更新能力,其實(shí)想想還有很多好處,比如項(xiàng)目功能太多原生開發(fā)要很長時(shí)間,但是領(lǐng)導(dǎo)又急著要上線,那么我們是不是就可以先開發(fā)一個(gè)網(wǎng)頁版的模塊,app路由映射到這個(gè)web頁面,讓用戶先用著,等我們?cè)_發(fā)完了,然后再改一下映射文件,沒升級(jí)的依舊用H5的路由,升級(jí)的就用原生的路由,如果H5頁面我們要廢棄了,那我們整體就可以路由到一個(gè)升級(jí)提升的頁面去了。

總結(jié)一下路由機(jī)制能解決我們哪些問題:

1 避免引入頭文件,是頁面之間的依賴大大變少了(通過反射動(dòng)態(tài)生成頁面實(shí)例)。

2 線上出現(xiàn)重大bug,給我們提供了一個(gè)及時(shí)修補(bǔ)的入口

3 網(wǎng)頁和原生切換更方便,更自由。

4 可以跳轉(zhuǎn)任意頁面 例如我們常用的推送,要打開指定的頁面,以前我們?cè)趺醋龅模鞣N啟動(dòng)判斷,現(xiàn)在呢,我們只要給發(fā)送消息配個(gè)路由路徑就行了,打開消息,就能夠跳轉(zhuǎn)到我們指定的頁面。

等等,其它好處自行發(fā)掘。

三 如何在項(xiàng)目中實(shí)現(xiàn)

說了這么多概念性問題,下面我們就用代碼來實(shí)現(xiàn)我們的構(gòu)想, 下面先以IOS平臺(tái)為例:

我們先看一下demo結(jié)構(gòu)

iOS demo結(jié)構(gòu)圖.png

說明:WXRouter 路由管理文件

demo 路由使用示例

urlMap.plist 路由配置文件

我們主要講解一下 WXRouter里面的幾個(gè)文件,以及ViewController文件,還有urlmap.plist文件,其他請(qǐng)下載示例demo,文末我會(huì)給出demo地址。

 
 
 
 
  1. #import 
  2. #import 
  3. @interface WXRouter : NSObject 
  4. +(id)sharedInstance; 
  5. -(UIViewController *)getViewController:(NSString *)stringVCName; 
  6. -(UIViewController *)getViewController:(NSString *)stringVCName withParam:(NSDictionary *)paramdic; 
  7. @end 
  8.  
  9. #import "WXRouter.h" 
  10. #import "webView.h" 
  11. #import "RouterError.h" 
  12. #import "PlistReadUtil.h" 
  13. #define SuppressPerformSelectorLeakWarning(Stuff) \ 
  14. do { 
  15. _Pragma("clang diagnostic push") \ 
  16. _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ 
  17. Stuff; \ 
  18. _Pragma("clang diagnostic pop") \ 
  19. while (0) 
  20. @implementation WXRouter 
  21. +(id)sharedInstance { 
  22.     static dispatch_once_t onceToken; 
  23.     static WXRouter * router; 
  24.     dispatch_once(&onceToken,^{ 
  25.         router = [[WXRouter alloc] init]; 
  26. }); 
  27. return router; 
  28. -(UIViewController *)controller:(UIViewController *)controller withParam:(NSDictionary *)paramdic andVcname:(NSString *)vcName { 
  29. SEL selector = NSSelectorFromString(@"iniViewControllerParam:"); 
  30.     if(![controller respondsToSelector: selector]){  //如果沒定義初始化參數(shù)方法,直接返回,沒必要在往下做設(shè)置參數(shù)的方法 
  31.         NSLog(@"目標(biāo)類:%@未定義:%@方法",controller,@"iniViewControllerParam:"); 
  32. return controller; 
  33. if(paramdic == nil) { 
  34. //如果參數(shù)為空 URLKEY 頁面唯一路徑標(biāo)識(shí)別 
  35.         paramdic = [[NSMutableDictionary alloc] init]; 
  36.         [paramdic setValue: vcName forKey:@"URLKEY"]; 
  37. SuppressPerformSelectorLeakWarning([controller performSelector: selector withObject:paramdic]); 
  38. else { 
  39. [paramdic setValue: vcName forKey:@"URLKEY"]; 
  40. SuppressPerformSelectorLeakWarning( [controller performSelector:selector withObject:paramdic]); 
  41.     return controller; 
  42. -(UIViewController *)getViewController:(NSString *)stringVCName { 
  43. NSString *viewControllerName = [PlistReadUtil plistValueForKey: stringVCName]; 
  44. Class class = NSClassFromString(viewControllerName); 
  45.     UIViewController *controller = [[class alloc] init]; 
  46.     if(controller == nil){  //此處可以跳轉(zhuǎn)到一個(gè)錯(cuò)誤提示頁面 
  47.         NSLog(@"未定義此類:%@",viewControllerName); 
  48.         return nil; 
  49. return controller; 
  50. -(UIViewController *)getViewController:(NSString *)stringVCName withParam:(NSDictionary *)paramdic { 
  51. UIViewController *controller = [self getViewController: stringVCName]; 
  52. if(controller != nil){ 
  53.         controller = [self controller: controller withParam:paramdic andVcname:stringVCName]; 
  54. else { 
  55. //異常處理  可以跳轉(zhuǎn)指定的錯(cuò)誤頁面 
  56.         controller = [[RouterError sharedInstance] getErrorController]; 
  57. return controller; 
  58. @end  

說明:通過反射機(jī)制根據(jù)傳入的string來獲取 viewcontroller實(shí)例,實(shí)現(xiàn)了兩個(gè)方法,一個(gè)是不需要傳入?yún)?shù)的,一個(gè)是需要傳入?yún)?shù)的,當(dāng)跳轉(zhuǎn)到第二個(gè)頁面需要傳值 就使用第二個(gè)帶參數(shù)的方法,所傳的值通過NSDictionary來進(jìn)行封裝,跳轉(zhuǎn)后的頁面通過實(shí)現(xiàn)

-(void)iniViewControllerParam:(NSDictionary *)dic 方法來獲取傳過來的參數(shù)。

 
 
 
 
  1. #import 
  2. @interface PlistReadUtil : NSObject 
  3. @property(nonatomic,strong) NSMutableDictionary *plistdata; 
  4. +(id)sharedInstanceWithFileName:(NSString *)plistfileName; 
  5. +(NSString *)plistValueForKey:(NSString *)key; 
  6. @end 
  7.  
  8. #import "PlistReadUtil.h" 
  9. @implementation PlistReadUtil 
  10. +(id)sharedInstanceWithFileName:(NSString *)plistfileName { 
  11.     static dispatch_once_t onceToken; 
  12.     static PlistReadUtil * plistUtil; 
  13.     dispatch_once(&onceToken,^{ 
  14.         plistUtil = [[PlistReadUtil alloc] init]; 
  15.         NSString *plistPath = [[NSBundle mainBundle] pathForResource: plistfileName ofType:@"plist"]; 
  16.     plistUtil.plistdata = [[NSMutableDictionary alloc] initWithContentsOfFile: plistPath]; 
  17. }); 
  18. return plistUtil; 
  19. +(NSString *)plistValueForKey:(NSString *)key { 
  20. PlistReadUtil *plist =  [PlistReadUtil sharedInstanceWithFileName: @"urlMap"]; 
  21. return [plist.plistdata objectForKey: key]; 
  22. @end  

說明:路由配置文件讀取工具類,我這里讀取的是plist 文件,我這里也可以讀取json,或則訪問網(wǎng)絡(luò)獲取后臺(tái)服務(wù)器上的路由配置文件,這個(gè)根據(jù)我們業(yè)務(wù)需求的不同,可以添加不同的讀取方法。

 
 
 
 
  1. #import  
  2. #import  
  3. @interface RouterError : NSObject 
  4. +(id)sharedInstance; 
  5. -(UIViewController *)getErrorController; 
  6. @end 
  7.  
  8. #import "RouterError.h" 
  9. #import "WXRouter.h" 
  10. @implementation RouterError 
  11. +(id)sharedInstance { 
  12.     static dispatch_once_t onceToken; 
  13.     static RouterError * routerError; 
  14.     dispatch_once(&onceToken,^{ 
  15.         routerError = [[RouterError alloc] init]; 
  16. }); 
  17. return routerError; 
  18. #pragma mark  自定義錯(cuò)誤頁面 此頁面一定確保能夠找到,否則會(huì)進(jìn)入死循環(huán) 
  19. -(UIViewController *)getErrorController { 
  20. NSDictionary *diction = [[NSMutableDictionary alloc] init]; 
  21.     [diction setValue: @"https://themeforest.net/item/octopus-error-template/2562783" forKey:@"url"]; 
  22. UIViewController *errorController = [[WXRouter sharedInstance] getViewController: @"MSG003" withParam:diction]; 
  23. return errorController; 
  24. @end  

說明:在讀取配置文件時(shí)如果沒有讀到相應(yīng)的路徑,或者未定義相應(yīng)的class,我們可以在這里處理,我這邊處理的是如果出現(xiàn)錯(cuò)誤,就返回一個(gè)webview頁面,我們可以在項(xiàng)目里寫一個(gè)統(tǒng)一的錯(cuò)誤處理webview頁面,其實(shí)每個(gè)頁面默認(rèn)都添加了一個(gè)參數(shù)[paramdic setValue:vcName forKey:@"URLKEY"]; 就是這個(gè)URLKEY,這個(gè)key標(biāo)示配置文件中每個(gè)跳轉(zhuǎn)動(dòng)作的key,這個(gè)key是唯一的,我們可以根據(jù)不同的URLKEY然后通過后臺(tái)統(tǒng)一的一個(gè)接口來判斷跳轉(zhuǎn)到不同的錯(cuò)誤處理H5頁面。

 
 
 
 
  1. #import "ViewController.h" 
  2. #import "view2.h" 
  3. #import "WXRouter.h" 
  4. #import "PlistReadUtil.h" 
  5. @interface ViewController () 
  6. @end 
  7. @implementation ViewController 
  8. -(void)viewDidLoad { 
  9.     [super viewDidLoad]; 
  10.     UILabel *lable = [[UILabel alloc] initWithFrame: CGRectMake(0, 0, 100, 50)]; 
  11.     lable.textColor = [UIColor blueColor]; 
  12.     lable.text =@"hello word"; 
  13.     [self.view addSubview: lable]; 
  14.     UIButton *button = [[UIButton alloc] initWithFrame: CGRectMake(0, 50, 200, 50)]; 
  15.     [button setTitle: @"訪問view1" forState:UIControlStateNormal]; 
  16.     [button setTitleColor: [UIColor blackColor] forState:UIControlStateNormal]; 
  17.     button.tag = 1; 
  18.     [button addTarget: self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside]; 
  19.     [self.view addSubview: button]; 
  20.     UIButton *button2 = [[UIButton alloc] initWithFrame: CGRectMake(0, 110, 200, 50)]; 
  21.     [button2 setTitle: @"訪問view3" forState:UIControlStateNormal]; 
  22.     [button2 setTitleColor: [UIColor blackColor] forState:UIControlStateNormal]; 
  23.     button2.tag = 2; 
  24.     [button2 addTarget: self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside]; 
  25.     [self.view addSubview: button2]; 
  26.     UIButton *butto3 = [[UIButton alloc] initWithFrame: CGRectMake(0, 170, 200, 50)]; 
  27.     [butto3 setTitle: @"訪問webview" forState:UIControlStateNormal]; 
  28.     [butto3 setTitleColor: [UIColor blackColor] forState:UIControlStateNormal]; 
  29.     butto3.tag = 3; 
  30.     [butto3 addTarget: self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside]; 
  31.     [self.view addSubview: butto3]; 
  32.     UIButton *button4 = [[UIButton alloc] initWithFrame: CGRectMake(0, 230, 200, 50)]; 
  33.     [button4 setTitle: @"訪問wei定義的頁面" forState:UIControlStateNormal]; 
  34.     [button4 setTitleColor: [UIColor blackColor] forState:UIControlStateNormal]; 
  35.     button4.tag = 4; 
  36.     [button4 addTarget: self action:@selector(back:) forControlEvents:UIControlEventTouchUpInside]; 
  37.     [self.view addSubview: button4]; 
  38. -(void)back:(UIButton *)btn { 
  39.     switch (btn.tag) { 
  40.         case 1: { 
  41.             NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; 
  42.     [dic setValue: @"nihao shijie" forKey:@"title"]; 
  43.     UIViewController *controller = [[WXRouter sharedInstance] getViewController: @"MSG001" withParam:dic]; 
  44.     [self presentViewController: controller animated:YES completion:nil]; 
  45. break; 
  46.         case 2: { 
  47.     NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; 
  48.             [dic setValue: @"nihao shijie" forKey:@"title"]; 
  49.     UIViewController *controller = [[WXRouter sharedInstance] getViewController: @"MSG002"  withParam:dic]; 
  50.     [self presentViewController: controller animated:YES completion:nil]; 
  51. break; 
  52.         case 3: { 
  53.     NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; 
  54.             [dic setValue: @"https://www.baidu.com" forKey:@"url"]; 
  55.     UIViewController *controller = [[WXRouter sharedInstance] getViewController: @"MSG003" withParam:dic]; 
  56.     [self presentViewController: controller animated:YES completion:nil]; 
  57. break; 
  58.         case 4: { 
  59.     UIViewController *controller = [[WXRouter sharedInstance] getViewController: @"MSG005"  withParam:nil]; 
  60.     [self presentViewController: controller animated:YES completion:nil]; 
  61. default: 
  62.             break; 
  63. -(void)didReceiveMemoryWarning { 
  64. [super didReceiveMemoryWarning]; 
  65.     // Dispose of any resources that can be recreated. 
  66. @end  

說明:這個(gè)是使用示例,為了獲取***的靈活性,這里我并沒有把跳轉(zhuǎn)動(dòng)作presentViewcontroller,pushViewController,以及參數(shù)的組裝封裝在路由管理類里。看過很多大神寫的路由庫,有些也通過url schema的方式。類似于:xml:id/123/name/xu,這樣的路徑方式,但是個(gè)人感覺,如果界面之間傳遞圖片對(duì)象,或者傳嵌套的類對(duì)象,就有點(diǎn)麻煩了。因?yàn)榕侣闊?,所以就先寫個(gè)簡單的吧。

 
 
 
 
  1. #import "view3.h" 
  2. @interface view3 () 
  3. @end 
  4. @implementation view3 
  5. - (void)viewDidLoad { 
  6.     [super viewDidLoad]; 
  7.     UILabel *lable = [[UILabel alloc] initWithFrame: CGRectMake(0, 0, 100, 50)]; 
  8.     lable.textColor = [UIColor blueColor]; 
  9.     lable.text =@"我是view3"; 
  10.     [self.view addSubview: lable]; 
  11.     UIButton *button = [[UIButton alloc] initWithFrame: CGRectMake(200, 200, 200, 200)]; 
  12.     [button setTitle: @"back" forState:UIControlStateNormal]; 
  13.     [button setTitleColor: [UIColor blackColor] forState:UIControlStateNormal]; 
  14.     [button addTarget: self action:@selector(back) forControlEvents:UIControlEventTouchUpInside]; 
  15.     [self.view addSubview: button]; 
  16. -(void) back { 
  17.     [self dismissViewControllerAnimated: YES completion:nil]; 
  18. -(void)iniViewControllerParam:(NSDictionary *)dic { 
  19.     self.title = [dic objectForKey: @"title"]; 
  20. }  

說明:這個(gè)是要跳轉(zhuǎn)的頁面我們可以通過iniViewControllerParam:(NSDictionary *)dic方法獲取上一個(gè)界面?zhèn)鬟^來的參數(shù)。

urlMap.plist

說明:路由配置文件,key:value的形式,頁面里的每個(gè)跳轉(zhuǎn)動(dòng)作都會(huì)對(duì)應(yīng)一個(gè)唯一的key,這里如果兩個(gè)頁面都跳轉(zhuǎn)到同一個(gè)頁面,就會(huì)產(chǎn)生不同的key 對(duì)應(yīng)相同的value,感覺是有點(diǎn)冗余了,如果有更好的優(yōu)化,我會(huì)更新下文章的,這里的配置文件我們可以怎么玩,由于我在android的這塊的描述已經(jīng)很詳細(xì)了,所以這里就不再贅述。只是android的配置有點(diǎn)坑,類前需要加上包名,這點(diǎn)就沒有iOS方便靈活了,至此iOS示例我就講完了。

總結(jié):代碼是簡陋的,只是簡單的實(shí)現(xiàn)了自己的構(gòu)想,還有很多值得細(xì)細(xì)琢磨的地方,關(guān)鍵是架構(gòu)思路,通過中間路由根據(jù)下發(fā)的路由配置文件來動(dòng)態(tài)跳轉(zhuǎn)頁面,解決原生開發(fā)的遇到的一些問題,不同的項(xiàng)目有不同的業(yè)務(wù)邏輯,這種思路有什么缺陷,或者解決不了什么問題,大家一起討論分享?;谶@種思路搭建架子的話,對(duì)于將來的組件化開發(fā),應(yīng)該也會(huì)很方便轉(zhuǎn)換吧。

demo地址

android:https://github.com/lerpo/WXAndroidRouter.git

iOS :https://github.com/lerpo/WXiOSRouter.git


本文題目:移動(dòng)端基于動(dòng)態(tài)路由的架構(gòu)設(shè)計(jì)
本文網(wǎng)址:http://www.dlmjj.cn/article/dhpjsih.html