
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x56;&#x75;&#x65;&#x20;&#x52;&#x6F;&#x75;&#x74;&#x65;&#x72;&#x28;&#x8DEF;&#x7531;&#x29;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x32;&#x32;&#x2D;&#x30;&#x34;&#x2D;&#x32;&#x36;&#x20;&#x31;&#x30;&#x3A;&#x32;&#x38;&#x20;&#x50;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=4">&#x811A;&#x672C;&#x8BED;&#x8A00;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> <br/>Vue Router&#x662F;Vue.js&#x7684;&#x5B98;&#x65B9;&#x8DEF;&#x7531;&#x63D2;&#x4EF6;&#x3002;<br/>&#x4E00;&#x3001;&#x5F15;&#x5165;Vue Router<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script src=&#34;https://unpkg.com/vue@2&#34;&gt;&lt;/script&gt;<br/>&lt;script src=&#34;https://unpkg.com/vue-router@3&#34;&gt;&lt;/script&gt;<br/>&#x4E8C;&#x3001;&#x4F7F;&#x7528;Vue Router<br/>1&#x3001;&#x57FA;&#x672C;&#x8DEF;&#x7531;&#x793A;&#x4F8B;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;div id=&#34;app&#34;&gt;<br/>&nbsp;&nbsp;&lt;p&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/&#34;&gt;&#x4E3B;&#x9875;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; | <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/news&#34;&gt;&#x65B0;&#x95FB;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&lt;/p&gt;<br/>&nbsp;&nbsp;&lt;router-view&gt;&lt;/router-view&gt;<br/>&lt;/div&gt;<br/>&lt;script type=&#34;text/javascri&#112;t&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;const Home = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x4E3B;&#x9875;&#x3002;&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const News = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x65B0;&#x95FB;&#x9875;&#x3002;&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const router = new VueRouter({<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;routes: [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/&#39;, component: Home},<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/news&#39;, component: News}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;&nbsp;});<br/>&nbsp;&nbsp;&nbsp;&nbsp;const app = new Vue({router});<br/>&nbsp;&nbsp;&nbsp;&nbsp;app.$mount(&#39;#app&#39;);<br/>&lt;/script&gt;<br/>&#x8BF4;&#x660E;&#xFF1A;router-link&#x4E3A;&#x8DEF;&#x7531;&#x94FE;&#x63A5;&#x7EC4;&#x4EF6;&#xFF0C;&#x6700;&#x7EC8;&#x8F6C;&#x4E3A;&lt;a&gt;&#x6807;&#x7B7E;&#xFF1B;router-view&#x4E3A;&#x8DEF;&#x7531;&#x89C6;&#x56FE;&#x7EC4;&#x4EF6;&#xFF0C;&#x6700;&#x7EC8;&#x88AB;&#x6A21;&#x677F;&#x5185;&#x5BB9;&#x4EE3;&#x66FF;&#x3002;<br/>2&#x3001;&#x52A8;&#x6001;&#x8DEF;&#x5F84;&#x53C2;&#x6570;&#x8DEF;&#x7531;&#x793A;&#x4F8B;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;div id=&#34;app&#34;&gt;<br/>&nbsp;&nbsp;&lt;p&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/&#34;&gt;&#x4E3B;&#x9875;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; |<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/news/10/20&#34;&gt;&#x65B0;&#x95FB;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&lt;/p&gt;<br/>&nbsp;&nbsp;&lt;router-view&gt;&lt;/router-view&gt;<br/>&lt;/div&gt;<br/>&lt;script type=&#34;text/javascri&#112;t&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;const Home = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x4E3B;&#x9875;&#x3002;&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const News = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x65B0;&#x95FB;&#x9875;&#x3002;tid={{$route.params.tid}}&amp;id={{$route.params.id}}&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const router = new VueRouter({<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;routes: [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/&#39;, component: Home},<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/news/:tid/:id&#39;, component: News}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;&nbsp;});<br/>&nbsp;&nbsp;&nbsp;&nbsp;const app = new Vue({router});<br/>&nbsp;&nbsp;&nbsp;&nbsp;app.$mount(&#39;#app&#39;);<br/>&lt;/script&gt;<br/>&#x8BF4;&#x660E;&#xFF1A;Vue Router&#x52A8;&#x6001;&#x8DEF;&#x5F84;&#x53C2;&#x6570;&#x5339;&#x914D;&#x8BED;&#x6CD5;&#xFF1A;/:name1/:name2&#xFF0C;&#x53C2;&#x6570;&#x503C;&#x4F7F;&#x7528;$route.params.name1&#x3001;$route.params.name2&#x83B7;&#x53D6;&#x3002;<br/>3&#x3001;&#x67E5;&#x8BE2;&#x53C2;&#x6570;&#x8DEF;&#x7531;&#x793A;&#x4F8B;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;div id=&#34;app&#34;&gt;<br/>&nbsp;&nbsp;&lt;p&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/&#34;&gt;&#x4E3B;&#x9875;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; |<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/news?tid=10&amp;id=20&#34;&gt;&#x65B0;&#x95FB;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&lt;/p&gt;<br/>&nbsp;&nbsp;&lt;router-view&gt;&lt;/router-view&gt;<br/>&lt;/div&gt;<br/>&lt;script type=&#34;text/javascri&#112;t&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;const Home = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x4E3B;&#x9875;&#x3002;&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const News = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x65B0;&#x95FB;&#x9875;&#x3002;tid={{$route.query.tid}}&amp;id={{$route.query.id}}&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const router = new VueRouter({<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;routes: [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/&#39;, component: Home},<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/news&#39;, component: News}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;&nbsp;});<br/>&nbsp;&nbsp;&nbsp;&nbsp;const app = new Vue({router});<br/>&nbsp;&nbsp;&nbsp;&nbsp;app.$mount(&#39;#app&#39;);<br/>&lt;/script&gt;<br/>&#x8BF4;&#x660E;&#xFF1A;Vue Router&#x67E5;&#x8BE2;&#x53C2;&#x6570;&#x503C;&#x4F7F;&#x7528;$route.query.name1&#x3001;$route.query.name2&#x83B7;&#x53D6;&#x3002;<br/>4&#x3001;&#x901A;&#x914D;&#x7B26;(*)&#x8DEF;&#x7531;&#x793A;&#x4F8B;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;div id=&#34;app&#34;&gt;<br/>&nbsp;&nbsp;&lt;p&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/&#34;&gt;&#x4E3B;&#x9875;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; | <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;router-link to=&#34;/news&#34;&gt;&#x65B0;&#x95FB;&lt;/router-link&gt;<br/>&nbsp;&nbsp;&lt;/p&gt;<br/>&nbsp;&nbsp;&lt;router-view&gt;&lt;/router-view&gt;<br/>&lt;/div&gt;<br/>&lt;script type=&#34;text/javascri&#112;t&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;const Home = {template: &#39;&lt;div&gt;&#x8FD9;&#x662F;&#x4E3B;&#x9875;&#x3002;&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const Page404 = {template: &#39;&lt;div&gt;404 Not Found. {{$route.params.pathMatch}}&lt;/div&gt;&#39;};<br/>&nbsp;&nbsp;&nbsp;&nbsp;const router = new VueRouter({<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;routes: [<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;/&#39;, component: Home},<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{path: &#39;*&#39;, component: Page404}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>&nbsp;&nbsp;&nbsp;&nbsp;});<br/>&nbsp;&nbsp;&nbsp;&nbsp;const app = new Vue({router});<br/>&nbsp;&nbsp;&nbsp;&nbsp;app.$mount(&#39;#app&#39;);<br/>&lt;/script&gt;<br/>&#x8BF4;&#x660E;&#xFF1A;&#x901A;&#x914D;&#x7B26;(*)&#x5339;&#x914D;&#x503C;&#x4F7F;&#x7528;$route.params.pathMatch&#x83B7;&#x53D6;&#xFF0C;&#x672C;&#x4F8B;&#x7528;&#x5B83;&#x5B9E;&#x73B0;404&#x9875;&#x9762;&#x3002;<br/>&#x53C2;&#x8003;&#x8D44;&#x6599;<br/>[1].Vue Router&#x5B98;&#x7F51;&#xFF1A;https://v3.router.vuejs.org/zh/<br/>[2].Vue Router&#x6587;&#x6863;&#xFF1A;https://v3.router.vuejs.org/zh/guide/<br/>[3].Vue Router API&#xFF1A;https://v3.router.vuejs.org/zh/api/</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x56;&#x75;&#x65;&#x20;&#x52;&#x6F;&#x75;&#x74;&#x65;&#x72;&#x28;&#x8DEF;&#x7531;&#x29;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
