{"id":2641,"date":"2018-04-14T13:16:30","date_gmt":"2018-04-14T05:16:30","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2641"},"modified":"2018-04-14T13:16:30","modified_gmt":"2018-04-14T05:16:30","slug":"arouter-%e8%b7%b3%e8%bd%ac%e6%96%b0%e9%a1%b5%e9%9d%a2%ef%bc%8c%e5%87%ba%e7%8e%b0%e9%bb%91%e5%b1%8f%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2641","title":{"rendered":"ARouter \u8df3\u8f6c\u65b0\u9875\u9762\uff0c\u51fa\u73b0\u9ed1\u5c4f\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>\n\t\u4f7f\u7528&nbsp;ARouter \u7684\u670b\u53cb\u6709\u53ef\u80fd\u4f1a\u9047\u5230\u8df3\u8f6c\u9ed1\u5c4f\u7684\u95ee\u9898\u3002\u8fd9\u4e2a\u95ee\u9898\u4e00\u822c\u662f\u65b0\u624b\u624d\u4f1a\u4ea7\u751f\u7684\uff0c\u8001\u624b\u57fa\u672c\u4e0a\u5f88\u5c11\u4f1a\u9047\u5230\uff0c\u5373\u4f7f\u9047\u5230\uff0c\u4e5f\u4f1a\u5f88\u5feb\u89e3\u51b3\u3002\n<\/p>\n<p>\n\t\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u5c06\u89e3\u51b3\u7684\u529e\u6cd5\u516c\u5e03\u51fa\u6765\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u5927\u5bb6\u3002\n<\/p>\n<p>\n\t\u8df3\u8f6c\u65b0\u9875\u9762\uff0c\u5e76\u4e14finish()\u5f53\u524d\u9875\u9762\uff0c\u51fa\u73b0\u77ed\u6682\u9ed1\u5c4f\uff1f\u5177\u4f53\u63cf\u8ff0\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t\u5047\u8bbe\u6709\u4e24\u4e2a\u9875\u9762\uff08A\uff0cB\uff09\uff0c\u5f53\u4eceA\u9875\u9762\u8df3\u8f6c\u5230B\u9875\u9762\u7684\u65f6\u5019\uff0c\u6267\u884c\u4e86\u5982\u4e0b\u4ee3\u7801\n<\/p>\n<pre class=\"brush:java;\">\r\nARouter.getInstance().build(&quot;\/app\/&quot; + code).withBundle(&quot;bundle&quot;, bundle).navigation(mContext);\r\nthis.finish();<\/pre>\n<p>\n\t\u8fd9\u6837\u8fc7\u4f1a\u51fa\u73b0\u77ed\u6682\u7684\u9ed1\u5c4f\uff0c\u539f\u56e0\u662f\u4ee3\u7801\u4e2d\u771f\u6b63\u6267\u884c\u8df3\u8f6c\u7684\u65b9\u6cd5\u4f1a\u5728this.finish()\u4e4b\u540e\u6267\u884c\uff0c\u67e5\u770b\u6e90\u7801\u53ef\u77e5\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"ARouter \u9ed1\u5c4f\" src=\"https:\/\/camo.githubusercontent.com\/8379d3a2ee28a32b2a7876a292c329f49e86df89\/687474703a2f2f3778717765752e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f54492532302e706e67\" style=\"width: 1325px;height: 607px\" \/>\n<\/p>\n<p>\n\t\u4ece\u4ee3\u7801\u4e2d\u53ef\u77e5\uff0c\u6267\u884c\u8df3\u8f6c\u7684\u4ee3\u7801\u4f1a\u88ab\u653e\u5165looper,\u6240\u4ee5\u5c31\u4e0d\u53ef\u80fd\u7acb\u5373\u6267\u884c\u3002\n<\/p>\n<h2>\n\t\u5efa\u8bae<br \/>\n<\/h2>\n<p>\n\t\u53ef\u5728\u6b64\u5904\u8fdb\u884c\u7ebf\u7a0b\u5224\u65ad\uff0c\u5728\u975e\u4e3b\u7ebf\u7a0b\u65f6\u518d\u653e\u5165looper\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2641\">ARouter \u8df3\u8f6c\u65b0\u9875\u9762\uff0c\u51fa\u73b0\u9ed1\u5c4f\u95ee\u9898\u89e3\u51b3<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528&nbsp;ARouter \u7684\u670b\u53cb\u6709\u53ef\u80fd\u4f1a\u9047\u5230\u8df3\u8f6c\u9ed1\u5c4f\u7684\u95ee\u9898\u3002\u8fd9\u4e2a\u95ee\u9898\u4e00\u822c\u662f\u65b0\u624b\u624d\u4f1a\u4ea7\u751f\u7684\uff0c\u8001\u624b\u57fa\u672c\u4e0a\u5f88\u5c11 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[891,697,699,1611,946],"class_list":["post-2641","post","type-post","status-publish","format-standard","hentry","category-java","tag-android","tag-android-studio","tag-androiddevtools","tag-arouter","tag-946"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2641"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2641\/revisions"}],"predecessor-version":[{"id":2642,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2641\/revisions\/2642"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}