{"id":105406,"date":"2020-05-21T23:53:35","date_gmt":"2020-05-21T15:53:35","guid":{"rendered":"http:\/\/4563.org\/?p=105406"},"modified":"2020-05-21T23:53:35","modified_gmt":"2020-05-21T15:53:35","slug":"%e6%9c%89%e5%85%b3%e4%ba%8e%e5%89%8d%e5%90%8e%e7%ab%af%e9%a1%b9%e7%9b%ae%e7%9a%84%e7%90%86%e8%a7%a3%ef%bc%8c%e6%9c%89%e4%ba%9b%e4%b8%8d%e6%98%8e%e7%99%bd%e4%b9%8b%e5%a4%84","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=105406","title":{"rendered":"\u6709\u5173\u4e8e\u524d\u540e\u7aef\u9879\u76ee\u7684\u7406\u89e3\uff0c\u6709\u4e9b\u4e0d\u660e\u767d\u4e4b\u5904"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u5173\u4e8e\u524d\u540e\u7aef\u9879\u76ee\u7684\u7406\u89e3\uff0c\u6709\u4e9b\u4e0d\u660e\u767d\u4e4b\u5904               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tddxx <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u4eec\u516c\u53f8\u73b0\u6709\u95e8\u6237\u7f51\u7ad9\u662f\u91c7\u7528\u7684 vue.js+java\uff0c\u5728\u90e8\u7f72\u7684\u65f6\u5019\u901a\u8fc7\u5c06 vue \u9879\u76ee\u6253\u5305\u51fa\u9759\u6001\u6587\u4ef6\uff08 npm run build \uff09\uff0c\u653e\u5230 nginx \u4e2d\u7136\u540e\u901a\u8fc7 nginx \u8bbf\u95ee\u9875\u9762\u3002\u867d\u7136\u53ef\u884c\uff0c\u4f46\u78b0\u5230\u4e86\u4e00\u4e2a\u81f4\u547d\u7684\u95ee\u9898\u2014\u2014seo \u4f18\u5316\uff0c\u8fd9\u6837\u6253\u5305\u51fa\u6765\u7684 html \u9875\u9762\u90fd\u662f\u5229\u7528 js \u83b7\u53d6\u9875\u9762\uff0c\u5bfc\u81f4\u767e\u5ea6\u722c\u866b\u4ec0\u4e48\u4e5f\u722c\u4e0d\u51fa\u6765\u3002<\/p>\n<p>\u5728\u7f51\u4e0a\u770b\u4e86\u5f88\u591a\u6848\u4f8b\uff0c\u5c1d\u8bd5\u4e86\u5f88\u591a\u65b9\u6cd5\u4f46\u662f\u6548\u679c\u90fd\u4e0d\u592a\u7406\u60f3\uff1a 1.\u5229\u7528 nuxt.js \u6539\u9020\u73b0\u6709\u9879\u76ee\uff0c\u4f46\u662f\u9879\u76ee\u5df2\u7ecf\u6210\u578b\uff0c\u82b1\u8d39\u6210\u672c\u592a\u9ad8 2.\u9884\u6e32\u67d3 prerender-spa-plugin\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6211\u4eec\u4e5f\u6709\u5c1d\u8bd5\uff0c\u4f46\u662f\u53d1\u73b0\u5bf9\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u8fc7\u5927 3.\u6dd8\u5b9d\u7684 node \u4e2d\u95f4\u5c42\u5904\u7406\u65b9\u6848\uff0c\u5c06 html,js.css \u653e\u5230 node \u5bb9\u5668\u4e2d\uff0c\u597d\u50cf\u5bf9\u6211\u4eec\u73b0\u6709\u9879\u76ee\u4e5f\u5e2e\u52a9\u4e0d\u5927\u3002<\/p>\n<p>\u4eca\u5929\u7a81\u7136\u6709\u4e86\u4e2a\u60f3\u6cd5\uff0c\u6211\u53ef\u4e0d\u53ef\u4ee5\u76f4\u63a5\u5728\u670d\u52a1\u5668\u7aef npm run dev \u8fd0\u884c\u5f00\u53d1\u73af\u5883\uff0c\u901a\u8fc7 nginx \u76f4\u63a5\u8f6c\u53d1\u5230\u8fd9\u4e2a\u7aef\u53e3\uff0c\u4e0d\u6253\u5305\uff0c\u76f4\u63a5\u8fd0\u884c\u9879\u76ee\uff0c\u8fd9\u6837\u722c\u866b\u662f\u5426\u53ef\u4ee5\u722c\u53d6\u5230\u5185\u5bb9\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1737155\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : poisedflw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u60f3 SEO\uff0c\u5c31\u8001\u8001\u5b9e\u5b9e\u7684\u7528 SSR \u5427\uff0c\u7528\u5b98\u65b9\u63a8\u8350\u7684 vue-server-renderer\uff0c\u6210\u672c\u5e76\u4e0d\u5927\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737156\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crazybinggan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u8bf4\u6211\u7684\u65b9\u6cd5\uff0c\u4e13\u95e8\u9488\u5bf9\u722c\u866b\u641e\u4e00\u5957\uff0c\u6837\u5f0f\u3001JS \u90fd\u4e0d\u7528\uff0c\u5c31\u662f\u8def\u7531\u7ba1\u7406\u6bd4\u8f83\u86cb\u75bc\uff0c\u597d\u5904\u662f\u771f\u7279\u4e48\u65b9\u4fbf\u3001\u723d~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737157\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u80fd<br \/>seo \u7684\u95ee\u9898\u662f\u8fd9\u4e9b\u5185\u5bb9\u90fd\u662f js \u52a0\u8f7d\u4e4b\u540e\u6e32\u67d3\u5728\u9875\u9762\u91cc\u9762\u7684\uff0c\u800c\u722c\u866b\u6ca1\u6709\u529e\u6cd5\u4ece html \u8bfb\u5230<br \/>\u7528 dev server \u4e5f\u662f\u4e00\u6837\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737158\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ArtIsPatrick <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e2\u7136\u662f\u95e8\u6237\u7f51\u7ad9\u8bbe\u8ba1\u4e4b\u521d\u5c31\u5e94\u8be5\u8003\u8651\u5230 SEO \u7684\u95ee\u9898\u5440                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737159\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HarryQu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @crazybinggan \u4f60\u7684\u65b9\u6848\u53ef\u884c\u5417\uff1f \u6211\u4e4b\u524d\u67e5\u8be2\u4e86\u8fd9\u4e2a\u65b9\u6848\uff0c\u6709\u7684\u4eba\u8bf4\uff1a\u722c\u866b\u4f1a\u4f2a\u88c5\u6210\u6b63\u5e38 ip \u6765\u722c\u53d6\u6570\u636e\uff0c\u5982\u679c\u83b7\u53d6\u5185\u5bb9\u4e0d\u4e00\u81f4\uff0c\u4f1a\u88ab\u5224\u65ad\u4e3a\u4f5c\u5f0a\u3002<\/p>\n<p>prerender-spa-plugin \u6d88\u8017\u8d44\u6e90\u5927\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5728\u672c\u5730\u6784\u5efa\uff0c\u6784\u5efa\u6210\u529f\u540e\uff0c\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002\u4e0d\u8fc7\u6211\u4e4b\u524d\u91c7\u7528 prerender-spa-plugin\uff0c\u53d1\u73b0\u767e\u5ea6\u5e76\u4e0d\u7406\u776c\u6211\u7684\u535a\u5ba2\uff0cGoogle \u5012\u662f\u6536\u5f55\u4e86\uff0c\u53ef\u80fd\u535a\u5ba2\u592a\u70c2\u4e86\uff0c\u563f\u563f\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737160\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tddxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @poisedflw \u6709\u6ca1\u6709\u5177\u4f53\u7684\u73b0\u6709\u9879\u76ee\u63a5\u5165 ssr \u7684 demo                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737161\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tddxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @seki \u4e5f\u5c31\u662f\u8bf4 html+ajax \u5f02\u6b65\u83b7\u53d6\u722c\u866b\u4e5f\u83b7\u53d6\u4e0d\u4e86\uff0c\u5fc5\u987b\u8981\u662f\u6a21\u677f\u5f15\u64ce\u7c7b\u7684\uff0c\u76f4\u63a5\u8fd4\u56de\u9759\u6001\u9875\u9762                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737162\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tddxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ArtIsPatrick \u4e3a\u4e86\u65b9\u4fbf\u5c31\u91c7\u7528\u4e86 vue                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737163\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u7684\uff0c\u4e0d\u5982\u4f60\u5c31\u6539\u5230 nuxt \u5427\uff0c\u628a ajax \u8bf7\u6c42\u4ece\u539f\u6765\u7684\u5730\u65b9\u632a\u52a8\u5230 nuxt \u7684\u4e13\u95e8 api \u5c31\u884c\u3002\u7528 nuxt \u751a\u81f3\u53ef\u4ee5\u628a\u7f51\u7ad9\u505a\u6210\u9759\u6001\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737164\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : red2dog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6210\u672c\u9ad8\u5417\uff0cvue \u8f6c nuxt \u6539\u9020\uff0c\u8fd8\u6709 react \u8f6c next \u6539\u9020\u6211\u90fd\u505a\u8fc7\u3002\u4e0d\u662f\u53ea\u9700\u8981\u6539\u8bf7\u6c42\u5c42\u548c\u8def\u7531\u5c42\u5417\u3002<br \/>\u95ee\u9898\u662f\u4f60\u4eec\u65e2\u7136\u9700\u8981 seo\uff0c\u90a3\u4e3a\u4ec0\u4e48\u6700\u521d\u7684\u6280\u672f\u9009\u578b\u641e\u6210\u5ba2\u6237\u7aef\u6e32\u67d3\u5462\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737165\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : red2dog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728\u6211\u770b\u6765\uff0c\u6210\u672c\u9ad8\u53ea\u6709\u5ba2\u6237\u7aef\u6e32\u67d3\u8f6c pug \u6216\u8005 EJS \u8fd9\u6837\u7684\u6539\u9020\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1737166\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crazybinggan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @HarryQu \u4f60\u8fd9\u4e48\u95ee\u8fd8\u771f\u6ca1\u5173\u6ce8\u8fc7&#8230;\u8fd9\u8fb9\u4e5f\u53ea\u662f\u7b80\u5355\u9488\u5bf9\u7279\u5b9a\u641c\u7d22\u5f15\u64ce\u722c\u866b agent \u53bb\u5206\u6d41                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u5173\u4e8e\u524d\u540e\u7aef\u9879\u76ee\u7684\u7406\u89e3\uff0c\u6709\u4e9b\u4e0d\u660e\u767d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/105406"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105406"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/105406\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105406"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}