{"id":4002,"date":"2018-06-30T15:19:33","date_gmt":"2018-06-30T07:19:33","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=4002"},"modified":"2018-06-30T15:19:33","modified_gmt":"2018-06-30T07:19:33","slug":"vue-js%e5%85%a5%e9%97%a8%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/4002.html","title":{"rendered":"Vue.js\u5165\u95e8\u5b66\u4e60"},"content":{"rendered":"<p>=Start=<\/p>\n<h4 id=\"id-\u6a21\u677f-\u7f18\u7531\uff1a\">\u7f18\u7531\uff1a<\/h4>\n<p>\u5bf9\u4e8e\u4e00\u540d\u5f00\u53d1\u6765\u8bf4\uff0c\u5982\u679c\u60f3\u5411\u5916\u8bc1\u660e\u4f60\u7684\u5de5\u4f5c\u91cf\u3001\u80fd\u529b\uff0c\u4e00\u65b9\u9762\u8981\u9760\u5404\u79cd\u6570\u636e\u7b49\u786c\u6307\u6807\u6765\u76f4\u63a5\u8bf4\u660e\uff0c\u53e6\u4e00\u65b9\u9762\u5c31\u8981\u9760\u4f60\u505a\u7684\u4ea7\u54c1\u7684\u754c\u9762\u6765\u95f4\u63a5\u4f53\u73b0\u4e86\u3002\u800c\u4e14\uff0c\u66f4\u591a\u65f6\u5019\uff0c\u63d0\u4f9b\u7ed9\u522b\u4eba\u7684\u4f7f\u7528\u754c\u9762\u53ef\u80fd\uff08\u76f8\u6bd4\u4e8e\u4ed6\u4eec\u770b\u4e0d\u89c1\u6478\u4e0d\u7740\u7684\u540e\u7aef\u63a5\u53e3\u800c\u8a00\uff09\u66f4\u80fd\u5f71\u54cd\u522b\u4eba\u5bf9\u4f60\u5de5\u4f5c\u7684\u8ba4\u77e5\u548c\u8bc4\u4ef7\u3002<\/p>\n<p>\u6700\u8fd1\u624b\u4e0a\u7684\u4e8b\u60c5\u6ca1\u90a3\u4e48\u591a\u4e86\uff0c\u8003\u8651\u5b66\u4e60\u4e00\u4e0bVue.js\uff0c\u65b9\u4fbf\u5728\u66f4\u65b0\/\u6539\u7248\u7684\u65f6\u5019\u628a\u81ea\u5df1\u60f3\u5230\u7684\u4e00\u4e9b\u524d\u7aef\u5c55\u73b0\u6548\u679c\u52a0\u8fdb\u53bb\u3002<\/p>\n<h4 id=\"id-\u6a21\u677f-\u6b63\u6587\uff1a\">\u6b63\u6587\uff1a<\/h4>\n<h5 id=\"id-\u6a21\u677f-\u53c2\u8003\u89e3\u7b54\uff1a\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n<p>\u8fd9\u91cc\u63d2\u4e00\u53e5\u9898\u5916\u8bdd\uff0c<span style=\"color: #ff0000;\">\u5b66\u4e60\u5404\u79cd\u65b0\u6280\u672f\u3001\u77e5\u8bc6\u7684\u65f6\u5019\uff0c\u5b66\u4e60\u7684\u6700\u4f73\u53c2\u8003\u80af\u5b9a\u662f\u5b98\u65b9\u6587\u6863\uff1b<\/span>\u4f46\u662f\u5b98\u65b9\u6587\u6863\u4e00\u822c\u53ea\u4f1a\u6559\u7ed9\u4f60\u4e00\u4e9b\u57fa\u7840\u3001\u8bed\u6cd5\u65b9\u9762\u7684\u77e5\u8bc6\uff0c\u5982\u679c\u60f3\u62ff\u6765\u5b9e\u6218\uff0c\u7528\u4e8e\u9879\u76ee\u3001\u4ea7\u54c1\u7ea7\u522b\u7684\u5f00\u53d1\uff0c\u5c31\u4f1a\u53d1\u73b0\u5dee\u7684\u8fd8\u633a\u8fdc\u7684\u3002\u7279\u522b\u662f\u5f53\u4f60\u662f\u8be5\u9886\u57df\u7684\u65b0\u624b\u65f6\uff0c\u7ecf\u5e38\u4f1a\u78b0\u5230\u2014\u2014QuickStart\u6587\u6863\u5185\u5bb9\u4e5f\u4e0d\u591a\uff0c\u57fa\u7840\u77e5\u8bc6\u4e5f\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b9e\u9645\u5728\u642d\u5efa\u73af\u5883\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u6240\u4ee5\u9664\u4e86\u5b98\u65b9\u6587\u6863\u4e4b\u5916\uff0c\u6211\u4e00\u822c\u8fd8\u4f1a\u518d\u627e\u51e0\u7bc7\u5176\u5b83\u4eba\u5199\u7684\uff1axxx\u65b0\u624b\u5165\u95e8\u653b\u7565\u3001xxx\u73af\u5883\u642d\u5efa\u624b\u518c\u2026\u2026\u8fd9\u6837\u7684\u6587\u7ae0\u3002\u5e0c\u671b\u5728\u522b\u4eba\u7684\u5e2e\u52a9\u4e0b\u80fd\u5c11\u8d70\u70b9\u5f2f\u8def\uff0c\u56e0\u4e3a\u65b0\u4eba\u6700\u9700\u8981\u7684\u662f\u5feb\u901f\u5165\u95e8\u63d0\u9ad8\u5174\u8da3\u548c\u81ea\u4fe1\uff0c\u800c\u4e0d\u662f\u4e00\u5f00\u59cb\u5c31\u88ab\u5404\u79cd\u8be1\u5f02\u7684\u73af\u5883\u95ee\u9898\u56f0\u6270\uff0c\u8fdf\u8fdf\u627e\u4e0d\u5230\u611f\u89c9\uff1b<\/span>\u5728\u5ea6\u8fc7\u4e86\u65b0\u624b\u671f\u4e4b\u540e\uff0c\u518d\u9047\u5230\u4ec0\u4e48\u95ee\u9898\u4e5f\u5c31\u4e0d\u4f1a\u614c\u4e71\u4e86\u3002\u8fd9\u6b21\u5b66Vue.js\u627e\u5230\u7684\u4e0d\u9519\u7684\u65b0\u624b\u5165\u95e8\u653b\u7565\u5c31\u662f\uff1a<a id=\"title\" class=\"website-title\" tabindex=\"0\" title=\"Vue2.0 \u65b0\u624b\u5b8c\u5168\u586b\u5751\u653b\u7565\u2014\u2014\u4ece\u73af\u5883\u642d\u5efa\u5230\u53d1\u5e03\" href=\"https:\/\/jinkey.ai\/post\/tech\/vue2.0-xin-shou-wan-quan-tian-keng-gong-lue-cong-huan-jing-da-jian-dao-fa-bu\" target=\"_blank\" rel=\"noopener\">Vue2.0 \u65b0\u624b\u5b8c\u5168\u586b\u5751\u653b\u7565\u2014\u2014\u4ece\u73af\u5883\u642d\u5efa\u5230\u53d1\u5e03<\/a>\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u4e0b\u9762\u8fdb\u5165\u6b63\u9898\uff1a<\/p>\n<h6><strong>\u4e00\u3001Vue.js\u662f\u4ec0\u4e48\uff1f<\/strong><\/h6>\n<p>Vue (\u8bfb\u97f3 \/vju\u02d0\/\uff0c\u7c7b\u4f3c\u4e8e\u00a0<strong>view<\/strong>) \u662f\u4e00\u5957\u7528\u4e8e\u6784\u5efa\u7528\u6237\u754c\u9762\u7684<strong>\u6e10\u8fdb\u5f0f\u6846\u67b6<\/strong>\u3002\u4e0e\u5176\u5b83\u5927\u578b\u6846\u67b6\u4e0d\u540c\u7684\u662f\uff0cVue \u88ab\u8bbe\u8ba1\u4e3a\u53ef\u4ee5\u81ea\u5e95\u5411\u4e0a\u9010\u5c42\u5e94\u7528\u3002Vue \u7684\u6838\u5fc3\u5e93\u53ea\u5173\u6ce8\u89c6\u56fe\u5c42\uff0c\u4e0d\u4ec5\u6613\u4e8e\u4e0a\u624b\uff0c\u8fd8\u4fbf\u4e8e\u4e0e\u7b2c\u4e09\u65b9\u5e93\u6216\u65e2\u6709\u9879\u76ee\u6574\u5408\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5f53\u4e0e<a href=\"https:\/\/cn.vuejs.org\/v2\/guide\/single-file-components.html\">\u73b0\u4ee3\u5316\u7684\u5de5\u5177\u94fe<\/a>\u4ee5\u53ca\u5404\u79cd<a href=\"https:\/\/github.com\/vuejs\/awesome-vue#libraries--plugins\" target=\"_blank\" rel=\"noopener\">\u652f\u6301\u7c7b\u5e93<\/a>\u7ed3\u5408\u4f7f\u7528\u65f6\uff0cVue \u4e5f\u5b8c\u5168\u80fd\u591f\u4e3a\u590d\u6742\u7684\u5355\u9875\u5e94\u7528\u63d0\u4f9b\u9a71\u52a8\u3002<\/p>\n<p><strong>\u6982\u9614\u6765\u8bb2\u5c31\u662f\u2014\u2014<span style=\"color: #ff0000;\">Vue.js\u662f\u4e00\u4e2a\u524d\u7aef\u6846\u67b6\uff0c\u6613\u4e8e\u4e0a\u624b&amp;\u4e0e\u7b2c\u4e09\u65b9\u5e93\u6216\u9879\u76ee\u6574\u5408\u3002<\/span><\/strong><\/p>\n<h6><strong>\u4e8c\u3001Vue.js\u7684\u7279\u70b9\/\u597d\u5904\u662f\u4ec0\u4e48\uff1f<\/strong><\/h6>\n<p class=\"md_block md_has_block_below md_has_block_below_blockquote\"><span class=\"md_line md_line_dom_embed md_line_end\"><strong>\u2460<span style=\"color: #ff0000;\">\u6570\u636e\u7ed1\u5b9a<\/span><\/strong><\/span><\/p>\n<blockquote class=\"blockquote_lines_3\">\n<p class=\"md_block\"><span class=\"md_line md_line_start\">\u6bd4\u5982\u4f60\u6539\u53d8\u4e00\u4e2a\u8f93\u5165\u6846 Input \u6807\u7b7e\u7684\u503c\uff0c\u4f1a<strong>\u81ea\u52a8\u540c\u6b65<\/strong>\u66f4\u65b0\u5230\u9875\u9762\u4e0a\u5176\u4ed6\u7ed1\u5b9a\u8be5\u8f93\u5165\u6846\u7684\u7ec4\u4ef6\u7684\u503c\u3002<\/span><\/p>\n<\/blockquote>\n<p class=\"md_block md_has_block_below md_has_block_below_blockquote\"><span class=\"md_line md_line_dom_embed md_line_start md_line_end\"><strong>\u2461<span style=\"color: #ff0000;\">\u7ec4\u4ef6\u5316<\/span><\/strong><\/span><\/p>\n<blockquote class=\"blockquote_lines_1\">\n<p class=\"md_block\"><span class=\"md_line md_line_start md_line_end\">\u9875\u9762\u4e0a\u5c0f\u5230\u4e00\u4e2a\u6309\u94ae\u90fd\u53ef\u4ee5\u662f\u4e00\u4e2a\u5355\u72ec\u7684\u6587\u4ef6.vue\uff0c\u8fd9\u4e9b\u5c0f\u7ec4\u4ef6\u76f4\u63a5\u53ef\u4ee5\u50cf\u4e50\u9ad8\u79ef\u6728\u4e00\u6837\u901a\u8fc7\u4e92\u76f8\u5f15\u7528\u800c\u7ec4\u88c5\u8d77\u6765\u3002<\/span><\/p>\n<\/blockquote>\n<p>\u524d\u671f\u4f60\u53ef\u4ee5\u4e0d\u7528\u660e\u767d\u5b83\u7684\u7279\u70b9\u3001\u597d\u5904\u662f\u4ec0\u4e48\uff1f\u4ee5\u53ca\u5b83\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e9b\u7279\u70b9\u3001\u597d\u5904\uff1f\u4f60\u53ea\u8981\u77e5\u9053\u5b83\u7684\u7279\u70b9\u662f\u4ec0\u4e48\u5c31\u884c\uff0c\u540e\u7eed\u63a5\u89e6\u7684\u7c7b\u4f3c\u4e1c\u897f\u591a\u4e86\u81ea\u7136\u800c\u7136\u7684\u5c31\u61c2\u4e86\uff0c\u524d\u671f\u7ea0\u7ed3\u4e8e\u8fd9\u4e2a\u6ca1\u5565\u7528\u4e14\u6d6a\u8d39\u7cbe\u529b\u548c\u65f6\u95f4\uff08\u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u4e00\u4e2a\u7ecf\u9a8c\u4e4b\u8c08\uff0c\u4e0d\u4e00\u5b9a\u9002\u7528\u4e8e\u6240\u6709\u4eba\uff09\u3002<\/p>\n<h6><strong>\u4e09\u3001Vue.js\u7684\u5b89\u88c5<\/strong><\/h6>\n<p>\u56e0\u4e3a\u73b0\u5728\u4e60\u60ef\u4e8eMac\u73af\u5883\u529e\u516c\uff0c\u6240\u4ee5\u63a5\u4e0b\u6765\u7684\u5404\u79cd\u64cd\u4f5c\u9ed8\u8ba4\u662f\u5728Mac\u73af\u5883\u4e0b\u8fdb\u884c\u7684\u3002<\/p>\n<p>\u2460\u5148\u5b89\u88c5Homebrew\uff08\u5982\u679c\u5df2\u5b89\u88c5\u4e86\u7684\u8bdd\u53ef\u4ee5\u8df3\u8fc7\uff09\uff1a<\/p>\n<pre class=\"lang:default decode:true\">$ \/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"\r\n<\/pre>\n<p>\u2461\u7528Homebrew\u6765\u5b89\u88c5nodejs\uff1a<\/p>\n<pre class=\"lang:default decode:true \"># \u67e5\u770b\u3001\u5b89\u88c5\u3001\u5347\u7ea7 nodejs\r\nbrew info nodejs\r\nbrew install nodejs\r\nbrew upgrade node\r\n\r\n# \u67e5\u770b\u5b89\u88c5\u7684nodejs\u7684\u7248\u672c\r\nnode -v\r\n\r\n# \u67e5\u770b\u5b89\u88c5\u7684npm\u7684\u7248\u672c\r\nnpm -v\r\n<\/pre>\n<p>\u2462\u83b7\u53d6nodejs\u6a21\u5757\u5b89\u88c5\u76ee\u5f55\u8bbf\u95ee\u6743\u9650<\/p>\n<pre class=\"lang:default decode:true \">sudo chmod -R 777 \/usr\/local\/lib\/node_modules\/<\/pre>\n<p>\u2463\u5b89\u88c5\u6dd8\u5b9d\u955c\u50cf<\/p>\n<pre class=\"lang:default decode:true \">npm install -g cnpm --registry=https:\/\/registry.npm.taobao.org<\/pre>\n<p>\u2464\u5b89\u88c5webpack<\/p>\n<pre class=\"lang:default decode:true \"># -g\u9009\u9879\u6307\u7684\u662f\u300c\u5168\u5c40\u5b89\u88c5\u300d\uff0c\u5373\u4e00\u6b21\u5b89\u88c5\u5176\u5b83\u5730\u65b9\u4e5f\u80fd\u7528\r\ncnpm install webpack -g<\/pre>\n<p>\u2465\u5b89\u88c5vue\u811a\u624b\u67b6<\/p>\n<pre class=\"lang:default decode:true \">npm install vue-cli -g<\/pre>\n<p>\u2466\u4e13\u95e8\u627e\u4e00\u4e2a\u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u9879\u76ee\u4ee3\u7801\/\u6587\u4ef6<\/p>\n<pre class=\"lang:default decode:true \">cd \/path\/to\r\nmkdir learn_vue\r\ncd learn_vue<\/pre>\n<p>\u2467\u6839\u636e\u6a21\u677f\u521b\u5efa\u9879\u76ee<\/p>\n<pre class=\"lang:default decode:true\"># \u8fd9\u91cc\u7684 vue2_project \u662f\u5de5\u7a0b\u540d\u5b57\uff0c\u6ce8\u610f\u4e0d\u80fd\u7528\u4e2d\u6587\r\nvue init webpack-simple vue2_project\r\n\r\n# \u6216\u8005\u521b\u5efa vue1.0 \u7684\u9879\u76ee\uff0c\u5de5\u7a0b\u540d\u5b57\u4e5f\u4e0d\u80fd\u7528\u4e2d\u6587\r\nvue init webpack-simple#1.0 vue1_project\r\n\r\n# \u6267\u884c\u4e0a\u9762\u7684\u547d\u4ee4\u8fc7\u7a0b\u4e2d\u4f1a\u6709\u4e00\u4e9b\u521d\u59cb\u5316\u7684\u8bbe\u7f6e\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u9ed8\u8ba4Enter\u5c31\u597d<\/pre>\n<p>\u2468cd \u547d\u4ee4\u8fdb\u5165\u521b\u5efa\u7684\u5de5\u7a0b\u76ee\u5f55&amp;\u5b89\u88c5\u4e00\u4e9b\u9879\u76ee\u4f9d\u8d56<\/p>\n<pre class=\"lang:default decode:true \">cd vue2_project\r\n\r\n# \u4e00\u5b9a\u8981\u4ece\u5b98\u65b9\u4ed3\u5e93\u5b89\u88c5\uff0cnpm \u670d\u52a1\u5668\u5728\u56fd\u5916\u6240\u4ee5\u8fd9\u4e00\u6b65\u5b89\u88c5\u901f\u5ea6\u4f1a\u5f88\u6162\u3002\r\nnpm install\r\n\r\n# \u4e0d\u8981\u4ece\u56fd\u5185\u955c\u50cfcnpm\u5b89\u88c5(\u4f1a\u5bfc\u81f4\u540e\u9762\u7f3a\u4e86\u5f88\u591a\u4f9d\u8d56\u5e93)\r\ncnpm install\r\n\r\n# \u5b89\u88c5 vue \u8def\u7531\u6a21\u5757vue-router\u548c\u7f51\u7edc\u8bf7\u6c42\u6a21\u5757vue-resource\r\ncnpm install vue-router vue-resource --save\r\n<\/pre>\n<p>\u2469\u542f\u52a8\u9879\u76ee<\/p>\n<pre class=\"lang:default decode:true \">npm run dev\r\n\r\n# \u586b\u5751(\u4ee5\u4e0b\u5751\u53ef\u80fd\u7531\u4e8e vue2.0 \u5bfc\u81f4\u5176\u4ed6\u76f8\u5173\u7f16\u8bd1\u6253\u5305\u5de5\u5177\u6ca1\u66f4\u65b0\u5bfc\u81f4\u7684)\r\n#\u3010\u91cd\u70b9\u3011\u540e\u6765\u53d1\u73b0\u8fd9\u4e9b\u5751\u662f\u7531\u4e8e npm \u4e0d\u662f\u6700\u65b0\u7684\u7248\u672c3.10.2\uff0c \u7528 npm 3.9.5\u5c31\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u5751\r\n# \u89e3\u51b3\u529e\u6cd5: \u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\r\nnpm update -g<\/pre>\n<p id=\"toc_16\" class=\"h16\"><strong>\u73af\u5883\u95ee\u9898\u89e3\u51b3\u529e\u6cd5\u6982\u8ff0<\/strong><\/p>\n<p class=\"md_block md_has_block_below md_has_block_below_blockquote\"><span class=\"md_line md_line_start md_line_end\">\u9047\u5230\uff1a<\/span><\/p>\n<blockquote class=\"blockquote_lines_1\">\n<p class=\"md_block\"><span class=\"md_line md_line_start md_line_end\">Module build failed: Error: Cannot find module &#8216;\u6a21\u5757\u540d&#8217;<\/span><\/p>\n<\/blockquote>\n<p class=\"md_block md_has_block_below md_has_block_below_blockquote\"><span class=\"md_line md_line_start md_line_end\">\u90a3\u5c31\u5b89\u88c5\uff1a<\/span><\/p>\n<blockquote class=\"blockquote_lines_3\">\n<p class=\"md_block\"><span class=\"md_line md_line_start\">cnpm install \u6a21\u5757\u540d &#8211;save-dev(\u5173\u4e8edev\u73af\u5883\u7684\uff0c\u8868\u73b0\u4e3a npm run dev \u547d\u4ee4\u542f\u52a8\u4e0d\u4e86)<\/span><\/p>\n<p class=\"md_block\"><span class=\"md_line\">cnpm install \u6a21\u5757\u540d &#8211;save(\u5173\u4e8e\u9879\u76ee\u7684\uff0c\u6bd4\u5982main.js\uff0c\u8868\u73b0\u4e3a npm run dev \u6267\u884c\u6210\u529f\u4e4b\u540e\u63a7\u5236\u53f0\u62a5\u9519)<\/span><\/p>\n<p class=\"md_block\"><span class=\"md_line md_line_end\">\u6bd4\u5982escape-string-regexp\u3001strip-ansi\u3001has-ansi\u3001is-finite\u3001emojis-list<\/span><\/p>\n<\/blockquote>\n<h6><strong>\u56db\u3001\u5f00\u53d1\u73af\u5883\u642d\u5efa\/\u914d\u7f6e<\/strong><\/h6>\n<p>\u6211\u8fd8\u662f\u4e60\u60ef\u4e8e\u4f7f\u7528\u8f83\u4e3a\u8f7b\u91cf\u7ea7\u7684Sublime Text3\uff0c\u5728\u8fdb\u884cVue\u9879\u76ee\u5f00\u53d1\u65f6\uff0c\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u4ee3\u7801\u9ad8\u4eae\u63d2\u4ef6\uff0c\u6bd4\u5982\uff1aVue Syntax Hightlight\u3002<\/p>\n<pre class=\"lang:default decode:true \">\u5b89\u88c5\u65b9\u6cd5\uff1a\r\n\u7b2c\u4e00\uff0c\u5728 SublimeText \u4e2d\u6253\u5f00 PackageControl \uff0c\u5feb\u6377\u952e Command + Shift + p \u3002\r\n\u7b2c\u4e8c\uff0c\u6253\u5f00 Install Package \u7a97\u53e3 \u8f93\u5165 \"in\" \u9009\u62e9\u7b2c\u4e00\u4e2a\u3002\r\n\u7b2c\u4e09\uff0c\u8f93\u5165\u5728\u5f39\u51fa\u6846\u8f93\u5165 vue \u9009\u62e9\u63d2\u4ef6 Vue Syntax Hightlight \u3002<\/pre>\n<p><strong>\u4e94\u3001\u4f7f\u7528\u5b98\u65b9\u6587\u6863\u5b66\u4e60\u57fa\u7840<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/cn.vuejs.org\/v2\/guide\/\" target=\"_blank\" rel=\"noopener\">https:\/\/cn.vuejs.org\/v2\/guide\/<\/a><\/li>\n<\/ul>\n<p>\u516d\u3001\u4f7f\u7528\u7b80\u5355\u793a\u4f8b\u5b66\u4e60Vue\u7ec4\u4ef6<\/p>\n<p><strong>\u4e03\u3001\u4f7f\u7528\u7b80\u5355\u793a\u4f8b\u5b66\u4e60\u4f7f\u7528Vue\u5f00\u53d1\u5355\u9875\u5e94\u7528<\/strong><\/p>\n<ul>\n<li>Vue Router \u8d77\u6b65<br \/>\n<a href=\"https:\/\/router.vuejs.org\/zh\/guide\/#html\">https:\/\/router.vuejs.org\/zh\/guide\/#html<\/a><\/li>\n<li>Vue.js \u8def\u7531<br \/>\n<a href=\"http:\/\/www.runoob.com\/vue2\/vue-routing.html\">http:\/\/www.runoob.com\/vue2\/vue-routing.html<\/a><\/li>\n<li>\u4ece\u96f6\u5f00\u59cb\u7b80\u5355\u7684\u8def\u7531<br \/>\n<a href=\"https:\/\/cn.vuejs.org\/v2\/guide\/routing.html\">https:\/\/cn.vuejs.org\/v2\/guide\/routing.html<\/a><\/li>\n<li>vue-router \u57fa\u672c\u4f7f\u7528<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/SamWeb\/p\/6610733.html\">https:\/\/www.cnblogs.com\/SamWeb\/p\/6610733.html<\/a><\/li>\n<\/ul>\n<p><span style=\"color: #ff0000;\">\u516b\u3001\u4f7f\u7528\u7b80\u5355\u793a\u4f8b\u5b66\u4e60\u4f7f\u7528Vue\u83b7\u53d6\u52a8\u6001\u6570\u636e<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/jinkey.ai\/post\/tech\/vue2.0-xin-shou-wan-quan-tian-keng-gong-lue-cong-huan-jing-da-jian-dao-fa-bu\" target=\"_blank\" rel=\"noopener\">https:\/\/jinkey.ai\/post\/tech\/vue2.0-xin-shou-wan-quan-tian-keng-gong-lue-cong-huan-jing-da-jian-dao-fa-bu<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/showonne\/vue2-example\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/showonne\/vue2-example<\/a><\/li>\n<\/ul>\n<p><span style=\"color: #ff0000;\">\u4e5d\u3001\u4f7f\u7528\u7b80\u5355\u793a\u4f8b\u5b66\u4e60Vue\u7684UI\u6846\u67b6ElementUI\u7684\u4f7f\u7528<\/span><\/p>\n<ul>\n<li><a href=\"http:\/\/element-cn.eleme.io\/#\/zh-CN\/component\/quickstart\" target=\"_blank\" rel=\"noopener\">http:\/\/element-cn.eleme.io\/#\/zh-CN\/component\/quickstart<\/a><\/li>\n<li><a href=\"https:\/\/blog.csdn.net\/weixin_39897534\/article\/details\/79026204\" target=\"_blank\" rel=\"noopener\">vue2+elementUI HelloWorld<\/a><\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u7684\u51e0\u4e2a\u793a\u4f8b\u3001\u77e5\u8bc6\u70b9\u90fd\u4e0d\u7b97\u590d\u6742\uff0c\u4f46\u5efa\u8bae<strong>\u524d\u671f\u90fd\u81ea\u5df1\u6572\u4e00\u904d\uff0c\u9047\u5230\u4e0d\u61c2\u7684\u5148\u8bb0\u4e0b\u6765\uff0c<span style=\"color: #ff0000;\">\u591a\u52a8\u624b\u5c1d\u8bd5\u3001\u591a\u5bf9\u6bd4<\/span>\uff0c\u5f88\u591a\u77e5\u8bc6\u81ea\u7136\u800c\u7136\u7684\u5c31\u8bb0\u4f4f\u4e86\u3002<\/strong><span style=\"color: #ff0000;\"><strong>\u524d\u671f\uff0c\u5feb\u901f\u5165\u95e8\u662f\u6700\u91cd\u8981\u7684\uff0c\u5b83\u4f1a\u7ed9\u4f60\u5efa\u7acb\u5174\u8da3\u548c\u4fe1\u5fc3\uff0c\u5e2e\u52a9\u4f60\u7684\u8fdb\u4e00\u6b65\u5b66\u4e60\u3002<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<h5 id=\"id-\u6a21\u677f-\u53c2\u8003\u94fe\u63a5\uff1a\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n<ul>\n<li><a href=\"https:\/\/jinkey.ai\/post\/tech\/vue2.0-xin-shou-wan-quan-tian-keng-gong-lue-cong-huan-jing-da-jian-dao-fa-bu\">Vue2.0 \u65b0\u624b\u5b8c\u5168\u586b\u5751\u653b\u7565\u2014\u2014\u4ece\u73af\u5883\u642d\u5efa\u5230\u53d1\u5e03<\/a><\/li>\n<li><a href=\"https:\/\/cn.vuejs.org\/v2\/guide\/\">Vue.js\u5b98\u65b9\u6587\u6863<\/a><\/li>\n<\/ul>\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u5bf9\u4e8e\u4e00\u540d\u5f00\u53d1\u6765\u8bf4\uff0c\u5982\u679c\u60f3\u5411\u5916\u8bc1\u660e\u4f60\u7684\u5de5\u4f5c\u91cf\u3001\u80fd\u529b\uff0c\u4e00\u65b9\u9762\u8981\u9760\u5404\u79cd\u6570\u636e\u7b49\u786c\u6307\u6807\u6765\u76f4\u63a5\u8bf4\u660e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7],"tags":[1163,1162],"class_list":["post-4002","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-programing","tag-elementui","tag-vue-js"],"views":9049,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=4002"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4002\/revisions"}],"predecessor-version":[{"id":4003,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4002\/revisions\/4003"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=4002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=4002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=4002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}