{"id":274954,"date":"2021-01-12T12:30:11","date_gmt":"2021-01-12T04:30:11","guid":{"rendered":"http:\/\/4563.org\/?p=274954"},"modified":"2021-01-13T12:17:35","modified_gmt":"2021-01-13T04:17:35","slug":"%e5%8f%91%e5%b8%83-pm-js%ef%bc%8c%e5%8c%85%e6%8b%ac%e4%bd%86%e4%b8%8d%e9%99%90%e4%ba%8e%e5%b8%ae%e5%8a%a9%e6%9e%84%e5%bb%ba-web-%e5%8e%9f%e7%94%9f%e5%8d%95%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=274954","title":{"rendered":"\u53d1\u5e03 pm.js\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5e2e\u52a9\u6784\u5efa web \u539f\u751f\u5355\u9875\u9762"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u53d1\u5e03 pm.js\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5e2e\u52a9\u6784\u5efa web \u539f\u751f\u5355\u9875\u9762               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h3>\u9879\u76ee\u5730\u5740<\/h3>\n<p><strong>pm.js<\/strong><\/p>\n<p>\u53e6\u5916\u634e\u5e26\u4e2a\u9879\u76ee\uff0cgolang \u9ad8\u6027\u80fd\u3001\u529f\u80fd\u4e30\u5bcc\u7684\u7f51\u7edc\u4ea4\u4e92 \/RPC \u6846\u67b6 <strong>ARPC<\/strong><\/p>\n<p>\u56e0\u4e3a\u672c\u6765\u662f\u60f3\u5199\u70b9\u524d\u7aef\u7684\u9879\u76ee\u8f85\u52a9\u5ba3\u4f20 <strong>ARPC<\/strong> \u7684\uff0c\u4f46\u662f\u8feb\u4e8e\u524d\u7aef\u5b66\u4e0d\u52a8\uff0c\u5e76\u4e14\u4ece\u7406\u8bba\u4e0a\u8bb2\uff0creact \u3001vue \u90a3\u4e9b\u6700\u7ec8\u8fd8\u662f\u539f\u751f\u3001\u865a\u62df dom \u4e5f\u4e0d\u53ef\u80fd\u6bd4\u9ad8\u624b\u5199\u7684\u539f\u751f\u6027\u80fd\u597d\uff0c\u6240\u4ee5\u5199\u4e86 pm.js \uff0c\u4e0d\u6c42\u4e3a\u524d\u7aef\u793e\u533a\u505a\u51fa\u591a\u5927\u8d21\u732e\uff0c\u4f46\u613f\u80fd\u7ed9\u9053\u53cb\u4eec\u5e26\u6765\u4e00\u4e9b\u65b0\u7684\u601d\u8def\u3001\u7b80\u5316\u5de5\u7a0b\u3001\u4fdd\u4f4f\u79c0\u53d1<\/p>\n<h3>\u4e00\u4e9b\u793a\u4f8b<\/h3>\n<ul>\n<li>\n<p>bind pages<\/p>\n<\/li>\n<li>\n<p>bind pages and click<\/p>\n<\/li>\n<li>\n<p>pub\/sub &#8211; bind element and event<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e3b\u8981\u529f\u80fd<\/h3>\n<ol>\n<li>\u53d1\u5e03\u8ba2\u9605<\/li>\n<li>\u5143\u7d20\u4e0e\u4e8b\u4ef6\u8ba2\u9605<\/li>\n<li>\u591a\u9875\u9762 \/\u5143\u7d20\u663e\u793a\u9690\u85cf\u4e92\u65a5\u5173\u7cfb\u7ba1\u7406\uff08\u6784\u5efa\u5355\u9875\u9762\uff09<\/li>\n<li>\u7b80\u5355\u7684\u8bf7\u6c42\u3001html\/js \u5f02\u6b65\u52a0\u8f7d\u5c01\u88c5<\/li>\n<\/ol>\n<ul>\n<li>\u6e90\u7801 200 \u591a\u884c\uff0c\u6709\u9700\u8981\u7684\u8bf7\u81ea\u884c\u538b\u7f29\uff0c\u538b\u7f29\u540e 2-3k<\/li>\n<\/ul>\n<h3>pm.js \u5b9e\u73b0\u539f\u751f\u5355\u9875\u9762\u7684\u539f\u7406<\/h3>\n<ul>\n<li>\u4f20\u7edf web \u524d\u7aef\u5f00\u53d1\u591a\u662f\u901a\u8fc7\u6539\u53d8\u8def\u7531\u5207\u6362\u9875\u9762\uff0creload \u6d88\u8017\u5927\u3001\u6027\u80fd\u5dee<\/li>\n<li>\u8fd1\u51e0\u5e74 react \u3001vue \u7684\u5d1b\u8d77\u5f88\u5927\u7a0b\u5ea6\u4e0a\u63d0\u5347\u4e86\u6027\u80fd\uff0c\u4e3b\u8981\u662f\u5355\u9875\u9762\u3001router \u4e4b\u7c7b\u7684\uff0c\u4e00\u4e9b\u539f\u751f\u5355\u9875\u9762\u5e94\u7528\u7684\u65b9\u6848\u5e94\u8be5\u4e5f\u662f\u7c7b\u4f3c\u7684\u601d\u8def\uff0c\u5177\u4f53\u539f\u7406\u662f\u5565\u6ca1\u6df1\u5165\u7814\u7a76\uff0c\u53ea\u8bf4\u8bf4 pm.js \u7684\u5b9e\u73b0\u65b9\u6848\u5427\uff1a<\/li>\n<\/ul>\n<blockquote>\n<ol>\n<li>html \u4e3b\u9875\u9762\u5305\u542b\u4e00\u7ec4\u7a7a dom \u5143\u7d20\uff0c\u975e\u9ed8\u8ba4\u663e\u793a\u9875\u7684 dom \u5143\u7d20\u8bbe\u7f6e\u9690\u85cf\uff08 display: none \uff09<\/li>\n<li>\u4f7f\u7528 pm.js \u6839\u636e\u914d\u7f6e\u7ed1\u5b9a\u8fd9\u7ec4 dom \u5143\u7d20\u7684\u5173\u8054\u5173\u7cfb\uff0c\u6309\u7167\u5b9e\u9645\u5b50\u9875\u9762\u7684\u663e\u793a\u65f6\u673a\u6bd4\u5982 $pm.select(dom id)\uff0c\u540c\u6b65\u6216\u5f02\u6b65\u52a0\u8f7d\u8be5 html \u5b50\u9875\u9762\u4f5c\u4e3a\u4e3b\u9875\u9762\u7684 dom \u5143\u7d20\u5185\u5bb9<\/li>\n<li>\u901a\u8fc7 style.display \u5c5e\u6027\u63a7\u5236\u4e0d\u540c\u5b50\u9875\u9762\u5143\u7d20\u7684\u663e\u793a\u6216\u9690\u85cf\uff0c\u53ea\u6709\u5f53\u524d\u9875\u9762\u88ab\u663e\u793a\u3001\u5176\u4ed6\u9875\u9762\u88ab\u9690\u85cf<\/li>\n<\/ol>\n<\/blockquote>\n<ul>\n<li>\u7279\u70b9\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\u4e0d\u9700\u8981\u6539\u53d8\u8def\u7531\uff0c\u800c\u53ea\u662f\u9009\u62e9\u5f53\u524d\u9875\u9762<\/li>\n<li>\u53ef\u4ee5\u7ed1\u5b9a\u89e6\u6478\u65f6\u95f4\u7684 src-dst \u5173\u7cfb\uff0c\u70b9\u51fb src \u65f6\u81ea\u52a8\u5207\u6362\u9875\u9762<\/li>\n<li>\u63d0\u4f9b\u91ca\u653e\u9875\u9762\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u9875\u9762\u9690\u85cf\u65f6\u91ca\u653e\u3001\u4e0b\u6b21\u663e\u793a\u65f6\u91cd\u65b0\u52a0\u8f7d\uff0c\u4e1a\u52a1\u5c42\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u884c\u7ba1\u7406<\/li>\n<\/ol>\n<h3>\u4e00\u70b9\u5de5\u7a0b\u6027\u5efa\u8bae<\/h3>\n<ol>\n<li>\u9f13\u52b1\u4f7f\u7528\u6709\u7ec4\u7ec7\u6709\u7eaa\u5f8b\u7684 id \u8fdb\u884c dom \u5143\u7d20\u7684\u5de5\u7a0b\u7ba1\u7406<\/li>\n<li>\u9f13\u52b1\u4f7f\u7528\u4e8b\u4ef6 \/\u53d1\u5e03\u8ba2\u9605\u673a\u5236\uff0c\u7edf\u4e00\u5904\u7406 dom \u4e8b\u4ef6\u3001\u7f51\u7edc\u6d88\u606f\u4e8b\u4ef6\u7b49\u7684\u5206\u53d1\uff0c\u9875\u9762\u5185\u5bb9\u8fdb\u884c\u4e8b\u4ef6\u7ed1\u5b9a \/\u8ba2\u9605\uff0c\u4ece\u800c\u4e8b\u4ef6\u89e6\u53d1\u65f6\u7684\u5185\u5bb9\u81ea\u52a8\u66f4\u65b0\uff08\u8fd9\u672c\u6765\u662f\u4e2a\u633a\u7b80\u5355\u7684\u4e8b\u60c5\uff0c\u4f46\u662f react redux \u4e4b\u7c7b\u7684\u641e\u5f97\u8fc7\u4e8e\u590d\u6742\u3001\u4e91\u91cc\u96fe\u91cc\uff0c\u524d\u7aef\u9635\u8425\u8001\u5e08\u8fd9\u4e48\u73a9\u3001\u6240\u4ee5\u624d\u6709\u524d\u7aef\u5b66\u4e0d\u52a8\u4e86\u73b0\u8c61\uff09<\/li>\n<li>\u5c11\u5373\u662f\u591a\uff0c\u9f13\u52b1\u7b80\u5316\u5de5\u7a0b\u590d\u6742\u5ea6<\/li>\n<\/ol><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>20<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4912000\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5468\u4e00\u642c\u7816\u65e5\uff0cup up ~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912001\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u6765\u5927\u5bb6\u90fd\u53bb\u641e react \u3001vue \u4e86\uff0c\u6ca1\u4eba\u5173\u5fc3 native \u4e86                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912002\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kasumi20 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8def\u7531\u90fd\u6ca1\u6709\uff0c\u771f\u00b7\u5355\u9875\u9762                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912003\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Kasumi20 \u5982\u679c\u4e1a\u52a1\u5c42\u89c9\u5f97\u6709\u5fc5\u8981\uff0c\u5b8c\u5168\u53ef\u4ee5\u81ea\u5df1\u4f7f\u7528\u8def\u7531\u3002\u53ea\u662f\u4f7f\u7528 pm.js \u7684\u65b9\u6848\u4e0d\u9700\u8981\u4f7f\u7528\u8def\u7531\uff0c\u5e76\u4e14\u901a\u5e38\u6ca1\u6709\u5fc5\u8981\uff0c\u8fd9\u5728 GUI\/H5 GAME \u9886\u57df\u5f88\u5e38\u89c1\u3002<br \/>\u9700\u6c42\u4ecd\u7136\u53ef\u4ee5\u6309\u7167\u591a\u4e2a html \u8fdb\u884c\u5de5\u7a0b\u7ba1\u7406\u3002\u4f20\u7edf\u8def\u7531\u65b9\u6848\u662f\u4e3a\u4e86\u5207\u6362\u9875\u9762\uff0cpm.js \u7684\u4e00\u6837\u80fd\u8fbe\u5230\u800c\u4e14\u7b80\u5355\u65b9\u4fbf\u3001\u53ef\u4ee5\u5f97\u5230\u6700\u4f73\u6027\u80fd\u4fdd\u969c\uff0c\u800c\u4f20\u7edf native \u8def\u7531\u5207\u6362\u9875\u9762\u7684\u65b9\u6848\u6b63\u662f\u5e38\u89c4\u9879\u76ee\u6027\u80fd\u7684\u6700\u5927\u74f6\u9888\u6240\u5728\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912004\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shunia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6539\u53d8\u8def\u7531\u4f55\u6765\u7684\u7ed3\u8bba\u4f1a\u5bfc\u81f4 reload\uff0c\u53c8\u4f55\u6765\u7684\u6d88\u8017\u5927\uff1f<br \/>\u800c\u4e14\u4e5f\u6ca1\u542c\u8bf4\u8c01\u5f00\u53d1 SPA \u9879\u76ee\u9047\u5230\u4e86 router \u5bfc\u81f4\u7684\u6027\u80fd\u95ee\u9898\u554a\uff1f<\/p>\n<p>\u53e6\u5916\u548c React \u3001Vue \u5bf9\u6807\u7684\u8bf4\u6cd5\u4e0d\u53eb native \u5427\uff0c\u975e\u8981\u5f62\u5bb9\u5e94\u8be5\u662f\u539f\u751f Javascript\uff0c\u4e5f\u5c31\u662f Vanilla Javascript \uff1f<\/p>\n<p>go \u591a\u597d\u554a\uff0c\u6298\u817e\u4ec0\u4e48 Javascript <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/9kZ3y873-25.png\" alt=\"\u53d1\u5e03 pm.js\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5e2e\u52a9\u6784\u5efa web \u539f\u751f\u5355\u9875\u9762\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912005\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shunia \u6211\u4e0d\u77e5\u9053\u6211\u7406\u89e3\u7684\u8def\u7531\u662f\u5426\u6b63\u786e\uff0c\u5982\u679c\u8bf4\u7684\u4e0d\u51c6\u786e\uff0c\u591a\u591a\u6307\u6b63\u3002<br \/>\u6211\u4e0a\u9762\u8bf4\u7684\u662f\u4f20\u7edf\u65b9\u6848\u7684\u8def\u7531\uff08\u4e0d\u662f react \u3001vue \u7684\u8def\u7531\uff09\u2014\u2014\u4f20\u7edf web \u524d\u7aef\u65b9\u6848\u4e3b\u6d41\u5e94\u8be5\u662f window.location \u5427\uff0c\u7136\u540e\u662f reload\uff0c\u6027\u80fd\u5dee\u3002\u8bf4\u7684\u662f\u4f20\u7edf\u65b9\u6848\u8fd9\u6837\u6027\u80fd\u5dee\uff0c\u597d\u50cf\u6ca1\u8bf4\u5bf9\u6807 react \u3001vue \u7684\u8def\u7531\u5bfc\u81f4\u6027\u80fd\u5dee\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7406\u89e3\u6210\u5bf9\u6807 react \u3001vue\uff0c\u90a3\u4e48\u5bf9\u6807\u7684\u90e8\u5206\u6211\u662f\u6307\u5b83\u4eec\u7684\u865a\u62df dom\uff0c\u56e0\u4e3a\u6700\u7ec8\u90fd\u662f\u64cd\u4f5c native\uff0c\u6240\u4ee5\u5982\u679c native \u5b9e\u73b0\u65b9\u6848\u5408\u7406\uff0creact \u3001vue \u5e76\u4e0d\u4f1a\u6bd4 native \u6027\u80fd\u66f4\u9ad8\u3002<\/p>\n<p>\u201cgo \u591a\u597d\u554a\u201d \u2014\u2014 \u4e25\u91cd\u540c\u610f\uff0c\u6240\u4ee5\u6211\u4e5f\u4e0d\u662f\u6298\u817e js \u540e\u7aef\uff0c\u53ea\u662f\u634e\u5e26\u4e00\u70b9\u524d\u7aef\u601d\u8def                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912006\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shunia redux \u8fd9\u79cd\uff0c\u6838\u5fc3\u672c\u8d28\u5c31\u662f\u4e8b\u4ef6\u5206\u53d1\u6570\u636e\u9a71\u52a8\uff0c\u4f46\u662f\u5b83\u641e\u5f97\u592a\u590d\u6742\u4e86\u3002\u6240\u4ee5\u524d\u7aef\u793e\u533a\u5b66\u4e0d\u52a8\uff0c\u751a\u81f3\u5f88\u591a\u975e\u524d\u7aef\u7684\u8001\u53f8\u673a\u60f3\u641e\u4e0b\u524d\u7aef\u90fd\u5ffd\u89c9\u95e8\u69db\u5947\u9ad8\uff0c\u8fd9\u4e8e\u5de5\u7a0b\u6027\u4e0d\u591f\u53cb\u597d\u3002<\/p>\n<p>\u865a\u62df dom \u7cfb\u7684\u65b0\u6808\u6700\u5927\u7684\u597d\u5904\u662f\u5f3a\u884c\u63d0\u9ad8\u4e86\u95e8\u69db\uff0c\u5f3a\u884c\u7ea6\u675f\u4e86\u5de5\u7a0b\u89c4\u8303\uff0c\u867d\u7136\u4f9d\u65e7\u662f\u5c4e\u5c71\uff0c\u4f46\u662f\u4e0d\u662f\u4ec0\u4e48\u6837\u5b50\u7684\u5c0f\u767d\u90fd\u80fd\u722c\u4e0a\u5c71\u4e86\uff0c\u6240\u4ee5\u73b0\u5728\u8fd9\u4e9b\u5c71\u4e0a\u7684\u4eba\u4eec\uff0c\u81f3\u5c11\u505a\u4e8b\u80fd\u529b\u9760\u8c31\u4e86\u5f88\u591a\uff0c\u800c\u4e14\u5728\u8fd9\u5c71\u4e0a\u518d\u80fd\u5236\u4f5c\u51fa\u5f88\u6f02\u4eae\u7684\u524d\u7aef\u4ea7\u54c1\uff0c\u786e\u5b9e\u662f\u503c\u5f97\u80af\u5b9a\u7684\uff0c\u56e0\u4e3a\u6bd4\u7528 go \u5199\u4e00\u4e9b\u57fa\u7840\u4e1a\u52a1\u8fd8\u662f\u8981\u96be\u5ea6\u5927\u5f88\u591a\u7684\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912007\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : otato <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u5176\u5b9e\u5c31\u662f\u4e2a\u8def\u7531\u561b\uff0c\u6216\u8005\u8bf4\u52a0\u8f7d\u5668\uff0c\u529f\u80fd\u611f\u89c9\u591f\u4e86\uff0c\u5b89\u5fc3\u5f53\u4e2a\u8def\u7531\u5427\u3002<\/p>\n<p>\u6bcf\u4e2a\u9875\u9762\u91cc\u9762\u7684\u903b\u8f91\u7b80\u5355\u7684\u5c31\u5199\u539f\u751f\uff0c\u7a0d\u5fae\u590d\u6742\u4e00\u70b9\u7684\u7528 vue \u5b8c\u6574\u7248\uff08\u5e26\u6a21\u677f\u89e3\u6790\u5668\u7684\uff0c\u76f4\u63a5\u5c31\u53ef\u4ee5\u5728\u9875\u9762\u91cc\u5199\u4e0d\u7528 build \uff09\uff0c\u6216\u8005\u5176\u4ed6\u4ec0\u4e48\u6846\u67b6\uff0c\u518d\u590d\u6742\u7684\u8fd8\u662f\u5f97\u4e0a\u524d\u7aef\u90a3\u4e00\u5957\u3002<\/p>\n<p>\u865a\u62df DOM \u7684\u6027\u80fd\uff0c\u5c31\u662f\u5728 js \u91cc\u5bf9\u6bd4\u4e00\u4e0b\uff0c\u4e0d\u64cd\u4f5c dom\uff0c\u4e0d\u5360\u591a\u5c11\u65f6\u95f4\uff0c\u6700\u540e diff \u7b97\u6cd5\u7b97\u51fa\u6765\u7684\u5b9e\u9645 DOM \u64cd\u4f5c\uff0c\u57fa\u672c\u5c31\u662f\u6700\u4f18\u89e3\u3002\u73b0\u5728\u76f4\u63a5\u5927\u6bb5 innerHTML \u786e\u5b9e\u6027\u80fd\u6700\u597d\uff0c\u4f46\u662f\u518d\u7ec6\u7684\u7c92\u5ea6\u5462\uff0c\u8981\u4e48\u4f7f\u7528\u8005\u624b\u52a8\u53bb\u64cd\u4f5c dom\uff0c\u8981\u4e48\u4f60\u5b9e\u73b0\u4e2a\u4e2d\u95f4\u5c42\uff0c\u53ef\u662f\uff0c\u8fd9\u4e2a\u4e2d\u95f4\u5c42\uff0c\u4e0d\u4e5f\u5c31\u4f1a\u662f\u4e2a\u865a\u62df DOM \u4e48 23333<\/p>\n<p>\u4e8b\u4ef6\u7cfb\u7edf\u5efa\u8bae\u5c31\u7528\u5728\u9875\u9762\u95f4\u4f20\u6570\u636e\u6216\u8005\u8ddf\u4e3b\u7a0b\u5e8f\u901a\u8baf\uff0c\u53d1\u5e03 \/\u8ba2\u9605\u6a21\u5f0f\u9002\u5408\u505a\u5e95\u5c42\u4e0d\u9002\u5408\u5728\u4e1a\u52a1\u4e2d\u5168\u9762\u4f7f\u7528\u3002<br \/>\u65e9\u671f\u6709\u6846\u67b6\u4f7f\u7528\uff0c\u6bd4\u5982 riot.js \uff0c\u6211\u7528\u8fc7\u4e00\u6b21\uff0c\u521d\u59cb\u7b80\u5355\u76f4\u63a5\uff0c\u4f46\u662f\u4e00\u65e6\u4e8b\u4ef6\u6570\u91cf\u4e0a\u53bb\u751a\u81f3\u5f00\u59cb\u4e8b\u4ef6\u8054\u52a8\u4e4b\u540e\uff0c\u6df7\u4e71\u7a0b\u5ea6\u6307\u6570\u4e0a\u5347\u3002\u5f53\u7136\u6211\u5f53\u65f6\u786e\u5b9e\u4e5f\u633a\u83dc\u7684\uff0c\u4e0d\u8fc7\u4f30\u8ba1\u73b0\u5728\u5199\u4e5f\u4e0d\u4f1a\u597d\u591a\u5c11\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912008\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato <\/p>\n<p>\u201c\u4f60\u8fd9\u4e2a\u5176\u5b9e\u5c31\u662f\u4e2a\u8def\u7531\u561b\uff0c\u6216\u8005\u8bf4\u52a0\u8f7d\u5668\uff0c\u529f\u80fd\u611f\u89c9\u591f\u4e86\u201d \u2014\u2014 \u5b9a\u4e49\u4e0d\u4e00\u6837\u4e5f\u4e0d\u90a3\u4e48\u91cd\u8981\uff0c\u4f46\u662f\u8981\u5b9e\u73b0\u7684\u529f\u80fd\u662f\u7c7b\u4f3c\u7684\uff0c\u8fd9\u4e2a\u65b9\u6848\u5e76\u4e0d\u662f\u4ee5 web \u4e3a\u51fa\u53d1\u70b9\u7684\u6765\u505a\u7684\uff0c\u800c\u662f\u4ee5 GUI \u4e3a\u51fa\u53d1\u70b9\u634e\u5e26\u7740\u7ed9 web \u9886\u57df\u7684\u3002\u6d4f\u89c8\u5668\u672c\u8eab\u662f\u5728 GUI \u7cfb\u7edf\u4e4b\u4e0a\u53d1\u5c55\u8d77\u6765\u7684\u4e00\u5957\u590d\u6742\u59ff\u52bf\uff0c\u4f46 GUI \u9886\u57df\u6bd4\u5982\u684c\u9762\u3001\u6e38\u620f\u5f15\u64ce\uff0c\u90fd\u76f8\u5bf9\u89c4\u8303\u5f97\u597d\u4e00\u4e9b\u3001\u6ca1\u6709 web \u9886\u57df\u8fd9\u4e48\u7e41\u6742\u677e\u6563<\/p>\n<p>\u201c\u865a\u62df DOM \u7684\u6027\u80fd\uff0c\u5c31\u662f\u5728 js \u91cc\u5bf9\u6bd4\u4e00\u4e0b\u201d \u2014\u2014 \u8fd9\u4e2a\u8bf4\u6cd5\u4e0d\u591f\u8be6\u7ec6\uff0c\u4e0d\u77e5\u9053\u5144\u5f1f\u4f60\u7684\u610f\u601d\u662f\u5bf9\u6bd4\u5355\u4e2a dom \u8fd8\u662f\u6574\u4e2a dom \u6811\uff0c\u6211\u6ca1\u6709\u8bfb\u8fc7 react \u3001vue \u7684\u6e90\u7801\u3001\u4e0d\u786e\u5b9a\u5b83\u4eec\u7684\u5b9e\u73b0\u65b9\u6848\u3002\u5982\u679c\u6211\u81ea\u5df1\u5b9e\u73b0\u865a\u62df dom\uff0c\u6211\u4e0d\u4f1a\u53bb\u5b9e\u73b0\u7ba1\u7406\u6574\u4e2a dom \u6811\u6240\u6709\u8282\u70b9\uff0c\u53ea\u4f1a\u53bb\u6309\u7167\u521d\u59cb\u5316\u540e\u89e6\u53d1\u4fee\u6539\u624d\u53bb\u628a\u76f8\u5e94\u7684 dom \u5143\u7d20\u52a0\u5230\u7ba1\u7406\u5217\u8868\uff0c\u6bcf\u6b21\u89e6\u53d1\u4fee\u6539\u4e5f\u53ea\u5bf9\u6bd4\u8fd9\u4e2a\u5143\u7d20\u81ea\u5df1\u7136\u540e\u66f4\u65b0<\/p>\n<p>\u201c\u201d\u73b0\u5728\u76f4\u63a5\u5927\u6bb5 innerHTML \u786e\u5b9e\u6027\u80fd\u6700\u597d\uff0c\u4f46\u662f\u518d\u7ec6\u7684\u7c92\u5ea6\u5462\u201c \u2014\u2014 \u8fd9\u4e2a\u7406\u89e3\u662f\u4e0d\u51c6\u786e\u7684\uff0c\u76f4\u63a5\u5927\u6bb5\u53ea\u662f\u52a0\u8f7d\u5b50\u9875\u9762\u65f6\u4e00\u6b21\u6027 load\uff0c\u4e0d\u662f\u6bcf\u6b21\u6709 dom \u5143\u7d20\u53d8\u66f4\u90fd\u9700\u8981 reload \u5927\u6bb5<\/p>\n<p>\u201c\u201d\u8981\u4e48\u4f7f\u7528\u8005\u624b\u52a8\u53bb\u64cd\u4f5c dom\uff0c\u8981\u4e48\u4f60\u5b9e\u73b0\u4e2a\u4e2d\u95f4\u5c42\uff0c\u53ef\u662f\uff0c\u8fd9\u4e2a\u4e2d\u95f4\u5c42\uff0c\u4e0d\u4e5f\u5c31\u4f1a\u662f\u4e2a\u865a\u62df DOM \u4e48 23333&#8243; \u2014\u2014 \u624b\u52a8\u64cd\u4f5c dom \u662f\u5bf9\u7684\uff0c\u4e0d\u9700\u8981\u53e6\u5916\u5b9e\u73b0\u4e2a\u4e2d\u95f4\u5c42\u3001\u865a\u62df dom \u662f\u6709\u4e9b\u591a\u4f59\u7684<\/p>\n<p>\u201d\u4e8b\u4ef6\u7cfb\u7edf\u5efa\u8bae\u5c31\u7528\u5728\u9875\u9762\u95f4\u4f20\u6570\u636e\u6216\u8005\u8ddf\u4e3b\u7a0b\u5e8f\u901a\u8baf\uff0c\u53d1\u5e03 \/\u8ba2\u9605\u6a21\u5f0f\u9002\u5408\u505a\u5e95\u5c42\u4e0d\u9002\u5408\u5728\u4e1a\u52a1\u4e2d\u5168\u9762\u4f7f\u7528\u3002<br \/>\u65e9\u671f\u6709\u6846\u67b6\u4f7f\u7528\u201c \u2014\u2014 \u6240\u4ee5\u63d0\u4f9b\u4e86\u5355\u72ec bind dom \u5143\u7d20\u7684\u53ea\u7528\u6765\u66f4\u65b0\u9700\u8981\u52a8\u6001\u53d8\u5316\u7684 dom \u3002\u5176\u4ed6\u7684\u5f88\u591a\u529f\u80fd\u6bd4\u5982\u590d\u6742\u7684 UI \u7ec4\u4ef6\uff0c\u8fd8\u662f\u4ea4\u7ed9 UI \u6846\u67b6\uff0cpm.js \u5e76\u4e0d\u662f\u505a\u5168\u5957\u89e3\u51b3\u65b9\u6848\uff0c\u53ea\u662f\u63d0\u4f9b\u5355\u9875\u9762\u65b9\u6848\u6216\u8005\u5de5\u7a0b\u6027\u7684\u57fa\u7840                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912009\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato pm.js \u539f\u7406\u548c\u5b9e\u73b0\u90fd\u5f88\u7b80\u5355\uff0c\u4e0d\u662f\u4ec0\u4e48\u9ad8\u6df1\u7684\u73a9\u610f\u3002\u53ea\u662f\u6211\u60f3\u505a\u4e9b\u9875\u9762\uff0c\u9009\u7528\u4e00\u4e9b UI \u6846\u67b6\u65f6\u770b\u5230\u7684\u4e00\u4e9b\u5de5\u7a0b\u793a\u4f8b\uff0c\u6bd4\u5982 github \u4e0a\u6570\u4e07 star \u7684 bootstrap admin \u6a21\u677f\u9879\u76ee\uff0cdashboard \u5207\u6362\u529f\u80fd\u6807\u7b7e\u65f6\u662f url \u8def\u7531\u5230\u65b0\u9875\u9762\u3001\u6bcf\u6b21\u90fd\u5168\u90e8\u91cd\u65b0\u52a0\u8f7d\uff0c\u6027\u80fd\u635f\u5931\u592a\u4e8f\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912010\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato \u6211\u4e0d\u662f web \u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u4e5f\u4e0d\u592a\u4e86\u89e3\u524d\u7aef\u793e\u533a\u7279\u522b\u597d\u7684\u89e3\u51b3\u65b9\u6848\u7ec6\u8282\u3001\u53ea\u662f\u5076\u5c14\u4e86\u89e3\u4e00\u70b9\u3002\u60f3\u505a\u4e00\u70b9\u9875\u9762\uff0c\u4f46\u662f react \u3001vue \u8fd9\u4e9b\u9700\u8981\u66f4\u591a\u65f6\u95f4\u719f\u6089\u5b83\u4eec\u7684\u57fa\u7840\uff0c\u60f3\u76f4\u63a5\u539f\u751f\u641e\uff0c\u7136\u540e\u539f\u751f\u7684\u6846\u67b6\u6ca1\u6709\u627e\u5230\u6211\u6ee1\u610f\u7684\u59ff\u52bf\uff08\u81ea\u5df1\u5bf9\u6027\u80fd\u6709\u4e9b\u5f3a\u8feb\u75c7\uff09\uff0c\u5c31\u641e\u4e86 pm.js \u8fd9\u4e48\u4e2a\uff0c\u7b80\u5355\u5f52\u7b80\u5355\uff0c\u4f46\u662f\u5de5\u7a0b\u6027\u5728\u67b6\u6784\u5206\u5c42\u7684\u4e0d\u540c\u5c42\u91cc\uff0c\u6bcf\u4e00\u5c42\u5904\u7406\u597d\u81ea\u5df1\u7684\u53ea\u80fd\u5c31\u597d\uff0cpm.js \u662f Page Manager \u7684\u610f\u601d\uff0c\u5982\u679c\u662f\u6211\u81ea\u5df1\u7528\u6211\u4f1a\u7406\u89e3\u6210 Project Manager\uff0c\u56e0\u4e3a\u5728 pm.js \u7ba1\u7406\u9875\u9762\u57fa\u7840\u4e0a\u7684\u5de5\u7a0b\u7ed3\u6784\uff0c\u518d\u52a0\u4e0a\u52a8\u6001 dom \u5143\u7d20\u7684\u4e8b\u4ef6\u7ed1\u5b9a\u548c\u52a8\u6001\u66f4\u65b0\uff0c\u53e6\u5916\u627e\u4e00\u5957\u6f02\u4eae\u7684 UI \u6846\u67b6\uff0c\u57fa\u672c\u5c31\u8db3\u591f\u4e86\uff08\u53ef\u80fd\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7ec6\u8282\u6bd4\u5982 i18n \u56fd\u9645\u5316\u4e4b\u7c7b\u7684\u4e0d\u8d58\u8ff0\uff09<\/p>\n<p>\u4ee3\u7801\u5c42\u9762\u7684\u5de5\u7a0b\u7ba1\u7406\u672c\u8eab\u5e76\u4e0d\u9700\u8981\u592a\u591a\u4e1c\u897f\uff0c\u53ea\u662f\u88ab\u6709\u7684\u4eba\u6709\u7684\u793e\u533a\u641e\u5f97\u6709\u4e9b\u8fc7\u4e8e\u590d\u6742\u751a\u81f3\u534e\u800c\u4e0d\u5b9e\uff0c\u5b66\u8d77\u6765\u5934\u5927\u7528\u8d77\u6765\u7e41\u7410\uff0c\u867d\u7136\u4e5f\u662f\u4e00\u79cd\u5de5\u7a0b\u89c4\u8303\uff0c\u4f46\u672c\u6765\u53ef\u4ee5\u641e\u5f97\u7b80\u5355\u4e9b\uff0c\u5c31\u50cf\u72ec\u5b64\u4e5d\u5251\uff0c\u6211\u4e0d\u60f3\u73a9\u82b1\u67b6\u5b50 :joy::joy:                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912011\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato \u6240\u4ee5 react vue \u8fd9\u4e9b\u6ca1\u706b\u8d77\u6765\u4ee5\u524d\u7684 web \u524d\u7aef\u85aa\u8d44\u6c34\u5e73\u6bd4\u540e\u7aef\u4f4e\u5f88\u591a<br \/>\u539f\u751f\u65b9\u6848\u65f6\u4ee3\u5f88\u5c11\u6709\u4eba\u53bb\u505a\u4f18\u79c0\u7684 web \u524d\u7aef\u5de5\u7a0b\u7684\u6027\u80fd\u63d0\u5347\uff0c\u591a\u6570\u7684\u539f\u751f\u5de5\u7a0b\u7ba1\u7406\u96c6\u4e2d\u5728\u76ee\u5f55\u7ed3\u6784\u3001\u6ca1\u6709\u6d89\u53ca\u5230 dom \u6e32\u67d3\u7684\u6027\u80fd\u5c42\u6b21<br \/>\u591a\u6570\u7684\u6846\u67b6\u4e5f\u90fd\u662f UI \u76f8\u5173\u6846\u67b6\u3001\u4e3b\u8981\u6027\u80fd\u5173\u6ce8\u4e5f\u662f\u5728 UI \u7ec4\u4ef6\u672c\u8eab\u3001\u4e5f\u6ca1\u6709\u67d3\u6307\u63d0\u5347\u5de5\u7a0b\u6574\u4f53\u6027\u80fd\u7684\u5c42\u6b21\uff0c\u6216\u8005\u50cf jQuery \u8fd9\u79cd\uff0c\u4e5f\u63d0\u4f9b\u4e86\u5f88\u591a\u4fbf\u5229\u6027\u800c\u5e76\u975e\u6027\u80fd\u4f18\u5316<br \/>\u4f20\u7edf\u524d\u7aef\u4e0d\u592a\u5728\u610f\u6027\u80fd\uff0c\u76f4\u5230\u865a\u62df dom \u7cfb\u51fa\u6765\u6405\u5c40\uff0c\u539f\u751f\u66f4\u52a0\u663e\u5f97\u88ab\u4f4e\u4f30\uff0c\u800c\u865a\u62df dom \u7cfb\u7684\u8fd9\u4e9b\u5e76\u6ca1\u6709\u771f\u6b63\u63d0\u5347 native \u672c\u6765\u53ef\u4ee5\u8fbe\u5230\u7684\u9ad8\u5ea6\uff0c\u8fd9\u662f\u4ef6\u633a\u53ef\u60dc\u7684\u4e8b\u60c5\u2014\u2014\u8bf4\u53e5\u4e0d\u597d\u542c\u7684\uff0c\u524d\u7aef\u793e\u533a\u91cc\u771f\u6b63\u61c2\u5e95\u5c42\u3001\u6027\u80fd\u4eba\u76f8\u5bf9\u6bd4\u8f83\u5c11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912012\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shunia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9996\u5148\u4f60\u8fd9\u4e2a\u4e1c\u897f\u4e3b\u8981\u9488\u5bf9\u5355\u9875\u9762\uff0c\u90a3\u5c31\u4e0d\u8981\u5bf9\u6807\u9700\u8981\u52a0\u8f7d\u9875\u9762\u7684\u60c5\u51b5\u3002\u975e SPA \u6709\u5404\u79cd\u5b58\u5728\u7684\u539f\u56e0\uff0c\u6bd4\u5982\u8bf4\u5982\u679c\u8981\u8003\u8651 SEO\uff0c\u591a\u9875\u9762\u5c31\u6bd4\u5355\u9875\u9762\u65b9\u4fbf\u5f88\u591a\u3002<br \/>\u5176\u6b21\u5373\u4fbf\u662f\u4f60\u6240\u8c13\u7684 native\uff0c\u4e5f\u5f88\u65e9\u5c31\u6709\u4f7f\u7528 history \u6765\u8fdb\u884c\u9875\u5185\u8df3\u8f6c\u7684\u5c0f\u578b\u6846\u67b6\u4e86\uff0c\u4e0d\u662f\u6ca1\u6709\uff0c\u4f9d\u7136\u662f\u770b\u9700\u6c42\u800c\u5df2\u3002<br \/>\u518d\u6b21 redux \u6240\u8c13\u7684\u641e\u5f97\u592a\u590d\u6742\u4e86\u524d\u7aef\u793e\u533a\u5b66\u4e0d\u52a8\u4e86\uff0c\u771f\u4e0d\u77e5\u9053\u662f\u54ea\u6765\u7684\u81ea\u4fe1\u5199\u51fa\u8fd9\u6837\u7684\u8bdd\uff1f\u4e0d\u4ec5 redux \u672c\u8eab\u5e76\u4e0d\u590d\u6742\uff0c\u800c\u4e14\u524d\u7aef\u4f7f\u7528 redux \u7684\u5927\u6709\u4eba\u5728\uff0c\u5e76\u4e14\u7684\u5e76\u4e14\u4e5f\u5e76\u4e0d\u662f\u4eba\u4eba\u90fd\u9700\u8981\u7528 redux \u3002<\/p>\n<p>\u2018\u867d\u7136\u4f9d\u65e7\u662f\u5c4e\u5c71\u2019 \u4f60\u5199\u4f60\u7684\u6846\u67b6\uff0c\u6211\u5199\u7684 Javascript \u5c4e\u5c71\u5173\u4f60\u5c41\u4e8b\uff1f\u5728\u8fd9\u5f3a\u884c\u63d0\u9ad8\u81ea\u5df1\u81ea\u9ad8 go \u5e72\u561b\u5462\uff0c\u5f53\u81ea\u5df1\u662f Linus \uff1f<\/p>\n<p>\u4f60\u53ef\u4ee5\u4e0d\u60f3\u5b66 Javascript \u4e16\u754c\u7684\u65b0\u4e1c\u897f\uff0c\u8fd9\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u65e2\u4e0d\u53bb\u4e86\u89e3\uff0c\u4e5f\u4e0d\u505a\u5ba2\u89c2\u7684\u6bd4\u8f83\uff0c\u532a\u5937\u6240\u601d\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912013\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shunia <\/p>\n<p>\u4e5f\u5f88\u65e9\u5c31\u6709\u4f7f\u7528 history \u2014\u2014 \u8fd9\u4e2a\u6211\u4e0d\u61c2\uff0c\u4f46\u662f\u5b83\u662f\u5426\u9700\u8981\u91cd\u65b0\u6e32\u67d3\u9875\u9762\uff1f\u5982\u679c\u4e0d\u9700\u8981\uff0c\u90a3\u6027\u80fd\u6ca1\u4ec0\u4e48\u635f\u5931\uff0c\u8fd8\u597d<\/p>\n<p>redux \u4e4b\u7c7b\u7684\uff0c\u4f60\u89c9\u5f97\u7b80\u5355\u5df2\u7ecf\u5b66\u4f1a\uff0c\u4e0d\u4ee3\u8868\u5927\u591a\u6570\u4eba\u7684\u611f\u53d7\u3002\u6211\u7684\u89c2\u70b9\u4e5f\u4e0d\u80fd\u4ee3\u8868\u6240\u6709\uff0c\u4f46\u662f\u81f3\u5c11\u6211\u662f\u8fd9\u6837\u7684\u611f\u53d7\uff0c\u5e76\u4e14\u5305\u62ec node \u4e4b\u7236\u81ea\u5df1\u7684\u4e00\u4e9b\u89c2\u70b9\u4ee5\u53ca deno \u521a\u51fa\u6765\u65f6\u5019\u6709\u6210\u90fd\u5c0f\u4f19\u53bb\u70b8 issue \u7684\u65f6\u5019\uff0c\u6216\u8005\u8bf4\u73b0\u5b9e\u4e16\u754c\u91cc\u7684\u524d\u7aef\u540c\u4e8b\u4e5f\u5f88\u591a\u8fd9\u79cd\u611f\u53d7\u7684\u3002<\/p>\n<p>\u2018\u867d\u7136\u4f9d\u65e7\u662f\u5c4e\u5c71\u2019 \u4f60\u5199\u4f60\u7684\u6846\u67b6\uff0c\u6211\u5199\u7684 Javascript \u5c4e\u5c71\u5173\u4f60\u5c41\u4e8b \u2014\u2014 \u6211\u8bf4\u662f\u5c4e\u5c71\uff0c\u8fd9\u4e2a\u662f\u5426\u5b9a\u65e9\u671f\u7684\u524d\u7aef\u6280\u672f\u6808\uff0c\u5e76\u4e0d\u662f\u5426\u5b9a\u5199\u524d\u7aef\u7684\u4eba\uff0c\u6211\u539f\u6765\u7684\u63cf\u8ff0\u91cc\u4e5f\u8bf4\u4e86\uff0c\u80fd\u628a\u524d\u7aef\u505a\u597d\u7684\u786e\u5b9e\u662f\u503c\u5f97\u80af\u5b9a\u7684\u3002\u4e5f\u6ca1\u6709\u5f3a\u884c\u63d0\u9ad8 go<\/p>\n<p>\u4f60\u53ef\u4ee5\u4e0d\u60f3\u5b66 Javascript \u4e16\u754c\u7684\u65b0\u4e1c\u897f\uff0c\u8fd9\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u65e2\u4e0d\u53bb\u4e86\u89e3\uff0c\u4e5f\u4e0d\u505a\u5ba2\u89c2\u7684\u6bd4\u8f83\uff0c\u532a\u5937\u6240\u601d\u3002 \u2014\u2014 \u6211\u5199\u51fa\u6765\u7684\u90fd\u662f\u81ea\u8eab\u611f\u53d7\uff0c\u5982\u679c\u7406\u89e3\u4e0d\u5230\u4f4d\uff0c\u591a\u6307\u6559\u3001\u4ea4\u6d41\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>\u4f46\u662f\uff0c\u6de1\u5b9a\u70b9\uff0c\u804a\u4e2a\u6280\u672f\uff0c\u4e0d\u8981\u902e\u5230\u4e2a\u5b57\u773c\u5c31\u968f\u4fbf\u81ea\u5df1\u81c6\u6d4b\u51fa\u522b\u4eba\u5b58\u5728\u6076\u610f\u6216\u8005\u66f2\u89e3\u522b\u4eba\u7684\u542b\u4e49\uff0c\u6c14\u5927\u4f24\u8eab                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912014\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : otato <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63d0\u4f9b\u5355\u9875\u9762\u65b9\u6848\u6216\u8005\u5de5\u7a0b\u6027\u7684\u57fa\u7840\uff0c\u8fd9\u4e0d\u8ddf\u6211\u4e00\u4e2a\u610f\u601d\u561b<br \/>\u63a5\u4e0b\u6765\u4e0d\u662f\u8ddf\u4f60\u62ac\u6760\uff0c\u53ea\u662f\u6709\u4e9b\u95ee\u9898\u4f60\u7406\u89e3\u9519\u4e86<br \/>\u9996\u5148\u771f\u6ca1 native \u8fd9\u4e2a\u8bf4\u6cd5\uff0c\u4f60\u53ef\u80fd\u7406\u89e3\u6210\u90a3\u4e9b\u8de8\u5e73\u53f0 APP \u65b9\u6848\u4e86\uff0c\u90a3\u79cd\u65b9\u6848\u7684\u6027\u80fd\u635f\u8017\u4e00\u822c\u6765\u81ea\u6846\u67b6\u548c\u5e73\u53f0 API \u7684\u901a\u4fe1\u4e0a\uff0c\u4f46 r\/v \u90fd\u662f js\uff0c\u8ddf\u539f\u751f js \u8dd1\u5728\u540c\u4e00\u4e2a\u9875\u9762\u91cc\uff0c\u6ca1\u90a3\u4e9b\u635f\u8017\u3002<br \/>\u518d\u5c31\u865a\u62df DOM\uff0c\u6211\u4e3e\u4e2a\u4f8b\u5b50\u5427\uff1a<br \/>\u5217\u8868\u6e32\u67d3 1234\uff0c\u8981\u66f4\u65b0\u6210 5234\uff0c\u6027\u80fd\u6700\u597d\u80af\u5b9a\u662f\u76f4\u63a5 1 =&gt; 5\uff0c\u4e0d\u8fc7\u5b9e\u9645\u5e94\u7528\u4e2d\u4f60\u600e\u4e48\u77e5\u9053 1 \u53d8\u4e86\u5462\uff0c\u8981\u4e48\u4e0d\u7ba1\u4ed6\u5168\u91cf\u66f4\u65b0\uff0c\u8981\u4e48\u81ea\u5df1\u53bb diff \u53d8\u5316\uff0c\u4f46\u8fd9\u589e\u52a0\u4e86\u5fc3\u667a\u8d1f\u62c5<br \/>\u865a\u62df dom \u5c31\u80fd\u505a\u5230\uff0c\u4f60\u5c31 list = 5234\uff0c\u4ed6\u81ea\u52a8\u5e2e\u4f60\u7b97\u51fa\u6765\uff0c\u53ea\u8981\u628a 1 \u66f4\u65b0\u6210 5 \u5c31\u884c\u4e86<br \/>\u8fd9\u79cd\u7b80\u5355\u573a\u666f\u53ef\u80fd\u5168\u91cf\u66f4\u65b0\u4e5f\u5f88\u5feb\uff0c\u53ef\u4e07\u4e00\u5217\u8868\u91cc\u9762\u662f\u4e2a\u590d\u6742\u4e00\u4e9b\u7684\u529f\u80fd\u7ec4\u4ef6\u5462\uff0c\u6709\u81ea\u5df1\u7684\u72b6\u6001\u548c\u4e8b\u4ef6\u7ed1\u5b9a\uff0c\u8fd9\u4e9b\u90fd\u8981\u624b\u52a8\u5904\u7406\uff0c\u53ef\u5c31\u4fdd\u4e0d\u4f4f\u5934\u53d1\u4e86<br \/>\u771f\u7684\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u6478\u5230\u4e00\u4e9b jquery \u65f6\u4ee3\u5c3e\u5df4\u7684\u524d\u7aef\uff0c\u8fd9\u4e9b\u6846\u67b6\u5176\u5b9e\u964d\u4f4e\u4e86\u5f00\u53d1\u96be\u5ea6\u7684\u3002<br \/>\u4e0d\u8fc7\u53d1\u5c55\u5230\u73b0\u5728\u786e\u5b9e\u6982\u5ff5\u591a\u4e86\u4ea7\u751f\u4e00\u4e9b\u58c1\u5792\uff0c\u8fd9\u91cc\u518d\u6b21\u5efa\u8bae\u5c1d\u8bd5\u4e00\u4e0b\u5b8c\u6574\u7248\u7684 vue\uff0c\u76f4\u63a5\u5728\u9875\u9762\u91cc\u5199\u6a21\u677f\uff0c\u5904\u7406\u4e8b\u4ef6+\u53cc\u5411\u7ed1\u5b9a\uff0c\u4ec0\u4e48\u7ec4\u4ef6\u3001vuex \u3001router \u901a\u901a\u6ca1\u6709\uff0c\u4e0d\u7528\u6253\u5305\u7f16\u8bd1\uff0c\u5f15\u4e2a vue.js \u5c31\u884c\uff0c\u6587\u6863\u9996\u9875\u5c31\u5728\u5f3a\u8c03\u7684\u6e10\u8fdb\u5f0f\u6846\u67b6\uff0c\u5c31\u662f\u7ed9\u4f60\u8fd9\u79cd\u573a\u666f\u7528\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912015\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato <\/p>\n<p>\u201c\u63d0\u4f9b\u5355\u9875\u9762\u65b9\u6848\u6216\u8005\u5de5\u7a0b\u6027\u7684\u57fa\u7840\uff0c\u8fd9\u4e0d\u8ddf\u6211\u4e00\u4e2a\u610f\u601d\u561b\u201d \u2014\u2014 \u5bf9\u7684\uff0c\u5c31\u662f\u8fd9\u4e2a\u610f\u601d<\/p>\n<p>\u201c\u63a5\u4e0b\u6765\u4e0d\u662f\u8ddf\u4f60\u62ac\u6760\uff0c\u53ea\u662f\u6709\u4e9b\u95ee\u9898\u4f60\u7406\u89e3\u9519\u4e86\uff0c\u9996\u5148\u771f\u6ca1 native \u8fd9\u4e2a\u8bf4\u6cd5\u201d \u2014\u2014 \u6211\u4e5f\u4e0d\u786e\u5b9a\uff0c\u4e0d\u5e38\u6df7\u524d\u7aef\u793e\u533a\uff0c\u53ea\u662f\u770b\u5230\u6709\u4eba\u8fd9\u4e48\u8bf4\uff0c\u4ee5\u4e3a\u4f20\u7edf\u7684\u975e react \u3001vue \u5c31\u662f native \u5462\uff0c\u591a\u8c22\u6307\u6b63<\/p>\n<p>\u201c\u5217\u8868\u6e32\u67d3 1234\u201d \u2014\u2014 \u8fd9\u4e2a\u4f8b\u5b50\u5176\u5b9e\u865a\u62df dom \u4e0d\u7ba1\u662f\u54ea\u79cd\u5b9e\u73b0\uff0c\u5982\u679c\u662f\u901a\u7528\u7684\u529f\u80fd\u80af\u5b9a\u505a\u4e0d\u5230\u6700\u4f73\uff0c\u5f53\u7136\u6211\u4e5f\u4e0d\u662f\u8ffd\u6c42\u5b8c\u5168\u7684\u6027\u80fd\u6700\u4f73\uff0c\u901a\u5e38\u4e0d\u5f71\u54cd\u6027\u80fd\u4f53\u9a8c\u7684\u5c0f\u6d88\u8017\u8fd8\u662f\u4fbf\u5229\u6027\u4f18\u5148\u5c31\u884c\u4e86\uff0c\u81f3\u4e8e\u590d\u6742 UI \u4e4b\u7c7b\u7684\uff0c\u8fd8\u662f\u4ea4\u7ed9 UI \u6846\u67b6\u81ea\u5df1\u5904\u7406\u5427\uff0c\u5426\u5219\u641e\u4e00\u6574\u5957\u4e5f\u662f\u4e2a\u5927\u5de5\u7a0b<\/p>\n<p>\u201c\u8fd9\u91cc\u518d\u6b21\u5efa\u8bae\u5c1d\u8bd5\u4e00\u4e0b\u5b8c\u6574\u7248\u7684 vue\u201d \u2014\u2014 \u6211\u539f\u8ba1\u5212\u4e5f\u662f\uff0c\u539f\u751f\u7136\u540e react \u548c vue \u770b\u770b\uff0creact \u770b\u7740\u6709\u70b9\u590d\u6742\uff0c\u6682\u65f6\u4e5f\u6253\u7b97 vue \u4e00\u6ce2\uff0c\u53e6\u5916\u5c31\u662f\uff0c\u524d\u7aef\u8fd9\u51e0\u5e74\u53d8\u5316\u592a\u5feb\u4e86\uff0c\u4e4b\u524d\u4e5f\u5076\u5c14\u770b\u8fc7\u4e00\u6ce2\uff0c\u7ed3\u679c vue \u53c8\u8bf4 3.0 \u4e86\uff0c\u8fd8\u4e0d\u77e5\u9053 node \u7239\u7684 deno \u672a\u6765\u4f1a\u4e0d\u4f1a\u5e26\u8d77\u6765\u8282\u594f\u3001\u4f46\u662f\u76ee\u6d4b\u6709\u70b9\u96be\u4e86\uff0cnode \u5df2\u7ecf\u5f62\u6210\u7684\u5e9e\u5927\u793e\u533a\u6709\u70b9\u8239\u5927\u96be\u8c03\u5934\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912016\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato \u641c\u4e86\u4e0b native \u76f8\u5173\u7684\uff0c\u4f3c\u4e4e\u524d\u7aef\u793e\u533a\u539f\u751f js \u53ef\u4ee5\u53eb native\uff0c\u6bd4\u5982\uff1a\u800c react native \u53ea\u662f react \u79fb\u52a8\u7aef\u7684\u3001\u8fd9\u4e2a\u53ea\u662f react \u5185\u90e8\u7684\u533a\u5206                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912017\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @otato V \u7ad9\u4e0d\u80fd\u7f16\u8f91\uff0c\u54ce\uff0c\u4e0a\u9762\u4e00\u6761\u7f16\u8f91\u4e2d\u3001\u624b\u6296\u5c31\u53d1\u4e86<\/p>\n<p>\u641c\u4e86\u4e0b native \u76f8\u5173\u7684\uff0c\u4f3c\u4e4e\u524d\u7aef\u793e\u533a\u539f\u751f js \u53ef\u4ee5\u53eb native\uff0c\u6bd4\u5982\uff1a<br \/>https:\/\/stackoverflow.com\/questions\/41948057\/native-javascript-vs-jquery-real-world-performance-vs-theoretical-benchmarks\/41948449<\/p>\n<p>\u800c native \u5bf9\u4e8e react \u53ea\u662f react \u7684\u79fb\u52a8\u7aef\u7ed1\u5b9a\u539f\u751f\u65b9\u6848\uff0c\u8fd9\u91cc\u7684 native \u9002\u7528\u8303\u56f4\u662f\u5728 react \u800c\u4e0d\u662f\u6307\u6574\u4e2a\u524d\u7aef js<\/p>\n<p>\u5404\u79cd\u6280\u672f\u90fd\u4e0d\u7b80\u5355\uff0c\u4e0d\u540c\u7684\u793e\u533a\u3001\u6846\u67b6\u4e0d\u540c\u7684\u547d\u540d\u3001\u53eb\u6cd5\u592a\u591a\u4e86                                                             <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912018\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zlu1123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u65e0\u8111\u7ed9\u4e2a star                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4912019\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zlu1123 \u611f\u8c22 star\uff0c\u6211\u8fd8\u662f\u524d\u7aef\u65b0\u4eba\uff0c\u52aa\u529b\u5b66\u4e60\u6539\u8fdb ^_^                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u53d1\u5e03 pm.js\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5e2e\u52a9&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\/274954"}],"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=274954"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274954\/revisions"}],"predecessor-version":[{"id":274956,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274954\/revisions\/274956"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274954"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}