{"id":8991,"date":"2023-08-12T00:09:30","date_gmt":"2023-08-11T16:09:30","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=8991"},"modified":"2023-08-12T00:09:30","modified_gmt":"2023-08-11T16:09:30","slug":"ndjvxm","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/8991.html","title":{"rendered":"Node\u642d\u5efaVue\u9879\u76ee"},"content":{"rendered":"

\u3000\u3000\u968f\u7740\u4e92\u8054\u7f51\u7684\u53d1\u5c55\uff0c\u524d\u7aef\u6280\u672f\u4e5f\u5728\u4e0d\u65ad\u53d1\u5c55\uff0c\u76ee\u524d\u8d8a\u6765\u8d8a\u591a\u7684\u524d\u7aef\u5f00\u53d1\u8005\u4f7f\u7528Vue.js\u6765\u642d\u5efa\u9879\u76ee\uff0c\u800cNode.js\u5219\u662fVue.js\u9879\u76ee\u7684\u57fa\u7840\uff0c\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Node.js\u6765\u642d\u5efaVue.js\u9879\u76ee\uff0c\u4ee5\u53caVue.js\u9879\u76ee\u7684\u4f18\u70b9\u548cNode.js\u9879\u76ee\u7684\u4f18\u52bf\u3002<\/p>\n

\u4e00\u3001Vue\u9879\u76ee\u7684\u4f18\u70b9<\/H2><\/p>\n

\u3000\u30001.\u5feb\u901f\u642d\u5efa\uff1a\u4f7f\u7528Vue.js\u642d\u5efa\u9879\u76ee\u7684\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\u3002<\/p>\n

\u3000\u30002.\u5f00\u53d1\u6548\u7387\u9ad8\uff1aVue.js\u62e5\u6709\u4e30\u5bcc\u7684\u5de5\u5177\uff0c\u4f7f\u5f97\u5f00\u53d1\u6548\u7387\u66f4\u9ad8\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u66f4\u5feb\u7684\u5b8c\u6210\u9879\u76ee\u3002<\/p>\n

\u3000\u30003.\u7b80\u5355\u6613\u5b66\uff1aVue.js\u7684\u8bed\u6cd5\u7b80\u5355\u6613\u5b66\uff0c\u53ef\u4ee5\u8ba9\u65b0\u624b\u5f88\u5feb\u4e0a\u624b\uff0c\u5e76\u4e14\u53ef\u4ee5\u5feb\u901f\u7684\u5b9e\u73b0\u529f\u80fd\u3002<\/p>\n

\u4e8c\u3001\u642d\u5efaNode\u9879\u76ee\u7684\u6b65\u9aa4<\/H2><\/p>\n

\u3000\u30001.\u5b89\u88c5Node.js\uff1a\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Node.js\uff0cNode.js\u662f\u4e00\u4e2a\u57fa\u4e8eJavaScript\u7684\u8fd0\u884c\u73af\u5883\uff0c\u53ef\u4ee5\u8ba9JavaScript\u5728\u670d\u52a1\u7aef\u8fd0\u884c\u3002<\/p>\n

\u3000\u30002.\u4f7f\u7528npm\u5b89\u88c5Vue-cli\uff1aVue-cli\u662fVue.js\u7684\u811a\u624b\u67b6\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efaVue.js\u9879\u76ee\u3002<\/p>\n

\u3000\u30003.\u521b\u5efaVue\u9879\u76ee\uff1a\u4f7f\u7528Vue-cli\u53ef\u4ee5\u5feb\u901f\u521b\u5efaVue.js\u9879\u76ee\uff0c\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\u3002<\/p>\n

\u3000\u30004.\u5b89\u88c5\u4f9d\u8d56\uff1a\u5b89\u88c5\u5b8cVue.js\u9879\u76ee\u540e\uff0c\u9700\u8981\u5b89\u88c5\u4f9d\u8d56\uff0c\u8fd9\u4e9b\u4f9d\u8d56\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9e\u73b0\u66f4\u591a\u7684\u529f\u80fd\u3002<\/p>\n

\u4e09\u3001Node\u9879\u76ee\u7684\u4f18\u52bf<\/H2><\/p>\n

\u3000\u30001.\u5f00\u53d1\u6548\u7387\u9ad8\uff1aNode.js\u7684\u5f00\u53d1\u6548\u7387\u975e\u5e38\u9ad8\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5feb\u901f\u5b9e\u73b0\u529f\u80fd\u3002<\/p>\n

\u3000\u30002.\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\uff1aNode.js\u7684\u4ee3\u7801\u7ed3\u6784\u975e\u5e38\u6e05\u6670\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u7684\u7406\u89e3\u4ee3\u7801\u3002<\/p>\n

\u3000\u30003.\u65b9\u4fbf\u8c03\u8bd5\uff1aNode.js\u62e5\u6709\u4e30\u5bcc\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u7684\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n

\u3000\u3000\u7efc\u4e0a\u6240\u8ff0\uff0c\u4f7f\u7528Node.js\u6765\u642d\u5efaVue.js\u9879\u76ee\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\uff0c\u5b83\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\uff0c\u4f7f\u5f00\u53d1\u6548\u7387\u5927\u5927\u63d0\u9ad8\uff0c\u800c\u4e14\u53ef\u4ee5\u8ba9\u4ee3\u7801\u7ed3\u6784\u66f4\u52a0\u6e05\u6670\uff0c\u65b9\u4fbf\u8c03\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528Node.js\u6765\u642d\u5efaVue.js\u9879\u76ee\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\uff0c\u5b83\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\uff0c\u4f7f\u5f00\u53d1\u6548\u7387\u5927\u5927\u63d0\u9ad8\uff0c\u800c\u4e14\u53ef\u4ee5\u8ba9\u4ee3\u7801\u7ed3\u6784\u66f4\u52a0\u6e05\u6670\uff0c\u65b9\u4fbf\u8c03\u8bd5\u3002<\/p>\n","protected":false},"author":1,"featured_media":3671,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[52],"class_list":["post-8991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-wxtx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/8991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=8991"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/8991\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=8991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=8991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=8991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}