{"rsdb":{"rid":"239101","subhead":"","postdate":"0","aid":"164812","fid":"102","uid":"1","topic":"1","content":"
\n

\u8fd9\u51e0\u5929\u4e00\u76f4\u5728\u5b66\u4e60Vue.js\u6846\u67b6\u3002<\/p> \n

\u56e0\u4e3a\u4ee5\u524d\u6ca1\u6709\u524d\u7aef\u9879\u76ee\u7684\u7ecf\u9a8c\uff0c\u4e5f\u6ca1\u5b66\u8fc7\u4ec0\u4e48\u524d\u7aef\u6846\u67b6\uff0c\u6240\u4ee5\uff0c\u5bf9\u4e8evue.js\u7684\u5b66\u4e60\u6709\u4e9b\u4e0d\u77e5\u6240\u63aa\u3002<\/p> \n

\u5728vue.js\u5b98\u7f51\u770b\u6559\u7a0b\uff0c\u6309\u7167\u6559\u7a0b\u6307\u70b9\uff0c\u53ef\u4ee5\u4e0d\u7528\u811a\u624b\u67b6\u5f00\u53d1\uff0c\u4e5f\u53ef\u4ee5\u642d\u5efa\u5f00\u53d1\u73af\u5883\u3002<\/p> \n

\u8fd9\u91cc\u8bb0\u5f55\u4e0b\u642d\u5efa\u8fc7\u7a0b\uff08\u6559\u7a0b\u53c2\u8003\u7f51\u4e0a\u5404\u524d\u8f88\u63d0\u4f9b\u7684\u8d44\u6599\uff09\uff1a<\/p> \n

\u5b89\u88c5Node.js\uff1a\u4eceNode.js\u5b98\u7f51\u5b89\u88c5Node.js\u3002<\/p> \n

\u3000\u3000\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\uff08win + R => \u8f93\u5165 cmd\uff09\u4e2d\u8f93\u5165 node -v \u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p> \n

\u3000\u3000\"\"\u5982\u56fe\uff0cnode -v\u540e\u8f93\u51fa\u4e86\u7248\u672c\u53f7\u201cv6.11.4\u201d\uff0c\u5b89\u88c5\u6210\u529f\u3002<\/p> \n

\u5b89\u88c5\u6dd8\u5b9dnpm\u955c\u50cf\uff08\u5728\u56fd\u5185\u6dd8\u5b9dnpm\u955c\u50cf\u901f\u5ea6\u8f83\u5feb\uff0c\u53ef\u4ee3\u66ff\u5b98\u65b9npm\u955c\u50cf\uff09\uff1a\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165 => npm install -g cnpm \u2013registry=https:\/\/registry.npm.taobao.org<\/a> \u56de\u8f66\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/p> \n

\u5b89\u88c5vue\u547d\u4ee4\u884c\u5de5\u5177\uff08Vue-CLI\uff09\uff1a\u547d\u4ee4\u884c\u7a0b\u5e8f\u5185\u8f93\u5165 cnpm install -g vue-cli \uff08\u6b64\u5904\u8f93\u5165cnpm\u5c31\u662f\u8868\u793a\u4f7f\u7528\u6dd8\u5b9dnpm\u955c\u50cf\uff0c\u82e5\u4f7f\u7528\u5b98\u65b9npm\uff0c\u5219\u8f93\u5165 npm install --global vue-cli\uff09\uff0c\u56de\u8f66\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/p> \n

\u3000\u3000\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 vue \u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p> \n

\u3000\u3000\"\"\u5982\u56fe\uff0c\u51fa\u73b0\u4e86\u7c7b\u4f3c\u4ee5\u4e0a\u7684\u4fe1\u606f\uff0c\u90a3\u4e48\uff0c\u5b89\u88c5\u6210\u529f\u3002<\/p> \n

\u5b89\u88c5\u8fc7\u7a0b\u544a\u4e00\u6bb5\u843d\u3002<\/p> \n

\u63a5\u4e0b\u6765\uff0c\u5f00\u59cb\u521b\u5efa\u9879\u76ee\u3002<\/p> \n

\u8fd8\u662f\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u64cd\u4f5c \u2193<\/p> \n

\u3010\u8fd9\u4e00\u6b65\u6839\u636e\u559c\u597d\uff0c\u81ea\u7531\u51b3\u5b9a\u662f\u5426\u9700\u8981\uff0c\u5e76\u81ea\u7531\u51b3\u5b9a\u8f93\u5165\u5185\u5bb9\uff1a\u5728\u521b\u5efa\u9879\u76ee\u524d\uff0c\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165  cd d:\\\u6587\u6863 \u8fdb\u5165 d\u76d8 \u7684 \u6587\u6863 \u6587\u4ef6\u5939\u5185\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u5c06\u4e0b\u9762\u6b65\u9aa4\u521b\u5efa\u7684\u9879\u76ee\uff0c\u521b\u5efa\u5728 d\u76d8 \u7684 \u6587\u6863 \u6587\u4ef6\u5939\u5185\u3002\u5f53\u7136\uff0c\u5982\u4e0a\u6240\u8ff0\uff0c\u81ea\u7531\u51b3\u5b9a\u9879\u76ee\u521b\u5efa\u7684\u8def\u5f84\u3002\u3011<\/p> \n

\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 vue init webpack project_folder_name \uff08\u9879\u76ee\u6587\u4ef6\u5939\u540d\u81ea\u5b9a\u4e49\uff09\uff0c\u56de\u8f66\u3002<\/p> \n

\u7a0d\u7b49\uff0c\u4f1a\u4e00\u6b65\u4e00\u6b65\u51fa\u73b0\u5982\u4e0b\u4fe1\u606f\uff1a<\/p> \n

\"\"<\/p> \n

\u6309\u7167\u63d0\u793a\uff0c\u5b8c\u6210\u5373\u53ef\u3002<\/p> \n

\u6b64\u65f6\uff0c\u9879\u76ee\u521b\u5efa\u5b8c\u6210\u3002<\/p> \n

\u5f00\u59cb\u5b89\u88c5\u4f9d\u8d56\uff1a<\/p> \n

\u3000\u3000\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 cd project_folder_name \uff08\u521a\u624d\u81ea\u5b9a\u4e49\u7684\u9879\u76ee\u6587\u4ef6\u5939\u540d\u79f0\uff09\u8fdb\u5165\u6587\u4ef6\u5939\u3002<\/p> \n

\u3000\u3000\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 cnpm install \uff08\u4f7f\u7528cnpm\u7684\u539f\u56e0\u540c\u4e0a\u9762\u7684cnpm\uff09\u3002\u56de\u8f66\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/p> \n

\u6b64\u65f6\uff0c\u9879\u76ee\u6587\u4ef6\u5939\u76ee\u5f55\u5185\uff0c\u5e94\u8be5\u5df2\u7ecf\u6709\u4e86 node_modules \u6587\u4ef6\u5939\uff0c\u90a3\u4e48\uff0c\u606d\u559c\uff01\u4f9d\u8d56\u5b89\u88c5\u5b8c\u6210\u3002<\/p> \n

\u4e0d\u51fa\u610f\u5916\u7684\u8bdd\uff0c\u9879\u76ee\u5e94\u8be5\u5df2\u7ecf\u642d\u5efa\u5b8c\u6210\u4e86\u3002<\/p> \n

\u8bd5\u4e00\u8bd5\u5427\uff1a\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 npm run dev<\/p> \n

\"\"<\/p> \n

\u51fa\u73b0\u4ee5\u4e0a\u4fe1\u606f\u540e\uff0c\u7cfb\u7edf\u5c06\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\uff08\u5730\u5740\u4e3a\uff1ahttp:\/\/localhost:8080\uff09\uff0c\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u53ef\u5728\u8f93\u5165 npm run dev \u540e\u624b\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5e76\u8f93\u5165\u4ee5\u4e0a\u5730\u5740\u3002<\/p> \n

\u7efc\u4e0a\uff01<\/p> \n

\uff08\u4ee5\u4e0aWin10 64\u7cfb\u7edf\uff09<\/p> \n

 <\/p> \n

\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 \u5206\u5272\u7ebf \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p> \n

 <\/p> \n

Vue Devtools \u5b89\u88c5\uff1a<\/p> \n

\u70b9\u51fb Vue Devtools<\/a> \u8fdb\u5165\u4e0b\u8f7d\u9875\u9762\u3002<\/p> \n

\u53ef\u4e0b\u8f7dzip\u5305\uff0c\u653e\u5165\u672c\u5730 d\u76d8\u7684\u6587\u6863 \u6587\u4ef6\u5939\u91cc\uff08\u60a8\u968f\u610f\uff0c\u7231\u653e\u54ea\u5c31\u653e\u54ea\uff0c\u81ea\u5df1\u627e\u5f97\u5230\u5c31\u884c\uff09\u3002<\/p> \n

\"\"<\/p> \n

\u89e3\u538b\u5230\u6587\u4ef6\u5939\uff08\u6b64\u5904\uff0c\u6211\u76f4\u63a5\u8bbe\u5b9a\u95ee\u6587\u4ef6\u5939\u540d\u548c\u538b\u7f29\u5305\u540c\u540d\u3002\uff09<\/p> \n

\u4e0b\u8f7d\u597d\uff0c\u5e76\u89e3\u538b\u597d\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a0b\u5e8f\u3002<\/p> \n

\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 cd D:\\\u6587\u6863\\vue-devtools-master \u8fdb\u5165\u5de5\u7a0b\u6240\u5728\u6587\u4ef6\u5939\u3002<\/p> \n

\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 cnpm install \u56de\u8f66\uff0c\u7b49\u5f85\u3002<\/p> \n

\u3000\u3000\"\"<\/p> \n

 <\/p> \n

\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\u8f93\u5165 npm run build \u56de\u8f66\uff0c\u7b49\u5f85\u3002<\/p> \n

\"\"<\/p> \n

\u7136\u540e\uff0c\u6253\u5f00\u4e0b\u56fe\u76ee\u5f55\u5185\u7684 mainfest.json \u6587\u4ef6\u3002<\/p> \n

\"\"<\/p> \n

\u4fee\u6539 background \u8282\u70b9\u4e0b persistent \u5c5e\u6027\u7684\u503c \u4e3a true\u3002<\/p> \n

\"\"<\/p> \n

\u4fdd\u5b58\u3002<\/p> \n

\u6253\u5f00 Google Chrome\u3002<\/p> \n

\u5728\u7f51\u5740\u680f\u8f93\u5165 chrome:\/\/extensions \u6253\u5f00\u6269\u5c55\u7a0b\u5e8f\u3002<\/p> \n

\u52fe\u9009\u5f00\u53d1\u8005\u6a21\u5f0f\uff0c\u5e76\u70b9\u51fb \u201d\u52a0\u8f7d\u5df2\u89e3\u538b\u7684\u62d3\u5c55\u7a0b\u5e8f...\u201c \u6309\u94ae\u3002<\/p> \n

\"\"<\/p> \n

\u9009\u62e9chrome\u6587\u4ef6\u5939\u3002<\/p> \n

\"\"<\/p> \n

\u5b89\u88c5\u5b8c\u6210\u3002<\/p> \n

\u6548\u679c\u56fe\uff1a<\/p> \n

\"\"<\/p> \n

 <\/p>\n<\/div>","orderid":"0","title":"Vue\u5b89\u88c5\u4ee5\u53caVue\u9879\u76ee\u521b\u5efa\u4ee5\u53caVue Devtools\u5b89\u88c5","smalltitle":"","mid":"0","fname":"Win","special_id":"0","bak_id":"0","info":"0","hits":"9371","pages":"1","comments":"0","posttime":"2017-10-16 18:18:35","list":"1508149115","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/images2017.cnblogs.com\/blog\/827424\/201710\/827424-20171015091643309-1797556596.png","ispic":"1","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"Vue<\/A> \u5b89\u88c5<\/A> \u4ee5\u53ca<\/A> \u9879\u76ee<\/A> \u521b\u5efa<\/A> Devtools<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"113.108.110.181","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"Vue\u5b89\u88c5\u4ee5\u53caVue\u9879\u76ee\u521b\u5efa\u4ee5\u53caVue Devtools\u5b89\u88c5","lastview":"1707596917","digg_num":"8132","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}