{"id":95464,"date":"2020-03-26T07:53:27","date_gmt":"2020-03-25T23:53:27","guid":{"rendered":"http:\/\/4563.org\/?p=95464"},"modified":"2020-05-20T15:48:04","modified_gmt":"2020-05-20T07:48:04","slug":"%e6%9c%89%e7%8e%a9%e4%bb%a5%e6%92%92%e7%9a%84%e7%bb%93%e5%90%88%e7%9a%84%e5%90%97%ef%bc%9f%e8%8a%b1%e5%87%a0%e5%a4%a9%e6%97%b6%e9%97%b4%e5%81%9a%e4%ba%86%e4%b8%aa%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=95464","title":{"rendered":"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <span><i><\/i> 64<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6700\u8fd1\u628a\u5403\u7070\u8bb8\u4e45 switch \u7ffb\u51fa\u6765\u73a9\u8d77\u4e86*\u4ee5\u6492\u7684\u7ed3\u5408*\uff0c\u9700\u8981\u7ecf\u5e38\u67e5\u9053\u5177\uff08\u83dc\uff09\u3002\u5df2\u6709\u7684\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u592a\u96be\u7528\uff0c\u5c31\u81ea\u5df1\u505a\u4e86\u4e2a(\u4ee5\u6492\u7684\u7ed3\u5408\u56fe\u9274)\uff0c\u7528\u7684\u662f\u4e4b\u524d\u81ea\u5df1\u778e\u73a9\u642d\u5efa\u7684\u4e00\u4e2a demo \u6846\u67b6 taro+typescript+dva \uff08\u4e00\u5171\u5c31 tm \u4e00\u4e2a\u754c\u9762\uff0c\u725b\u9f0e\u70f9\u9e21\u53ef\u60dc\u4e86\u8fd9 dva \u554a\u3002\u3002\uff09\u6570\u636e\u548c\u56fe\u7247\u662f\u4ece\u7070\u673a wiki \u722c\u7684\uff0c\u4e5f\u6ca1\u642d\u540e\u7aef\u90fd\u7528\u7684\u5c0f\u7a0b\u5e8f\u4e91\u5f00\u53d1<\/p>\n<p>\u603b\u7ed3\u4e0b\u9047\u5230\u7684\u5c0f\u95ee\u9898\uff1a<br \/> * \u722c\u4e0b\u6765\u7684\u56fe\u7247\u5f88\u591a(\u4e00\u5171\u7ea6 3M)\uff0c\u5168\u90e8\u6253\u5305\u5230\u4ee3\u7801\u91cc\u5305\u5927\u5c0f\u5c31\u8d85\u4e86\u3002\u4e00\u5f00\u59cb\u653e\u5230\u5c0f\u7a0b\u5e8f\u4e91\uff0c\u7136\u540e\u628a cloud \u6587\u4ef6 id \u7ed9 img \u63a7\u4ef6\u3002\u53d1\u73b0\u53ea\u6709\u7b2c\u4e00\u4e2a img \u63a7\u4ef6\u80fd\u6e32\u67d3\u51fa\u6765\u56fe\u7247\uff0c\u540e\u9762\u7684\u5168\u662f\u7a7a\u767d\u3002\u6162\u6162\u6d4b\u8bd5\u53d1\u73b0\u540c\u65f6\u6e32\u67d3\u7684 img \u63a7\u4ef6\u6570\u91cf\u5728 30 \uff08\u5927\u6982\uff0c\u5177\u4f53\u9650\u5236\u662f\u591a\u5c11\u6ca1\u4ed4\u7ec6\u6d4b\u8bd5\uff09\u4ee5\u5185\u7684\u65f6\u5019\u8d44\u6e90\u53ef\u4ee5\u5168\u90e8\u663e\u793a\uff0c\u591a\u4e00\u70b9\u5c31\u53ea\u80fd\u52a0\u8f7d\u5230\u7b2c\u4e00\u5f20\u3002\u5e94\u8be5\u662f\u4e91\u5f00\u53d1\u7684\u9650\u5236\u3002\u4f46\u662f\u8fd9\u4e2a\u9650\u5236\u6211\u6ca1\u5728\u6587\u6863\u4e2d\u627e\u5230\u3002\u6709\u77e5\u9053\u7684\u5177\u4f53\u6587\u6863\u4f4d\u7f6e\u7684\u540c\u5b66\u53ef\u4ee5\u8bc4\u8bba\u4e0b\u3002\u611f\u8c22<br \/> * \u4e0d\u60f3\u5199\u4ec0\u4e48\u5206\u9875\u52a0\u8f7d\u4e86\uff0c\u4f53\u9a8c\u4e5f\u4e0d\u597d\u3002\u7528[imagemin]( https:\/\/github.com\/imagemin\/imagemin)\u538b\u7f29\u4e86\u4e0b\u56fe\u7247\uff0c3M \u53d8\u6210\u4e86 300K\u3002\u5168\u6253\u5305\u5230\u4ee3\u7801\u3002<br \/> * taro \u597d\u7528\u662f\u597d\u7528\uff0c\u9650\u5236\u8fd8\u662f\u5f88\u591a\u3002<br \/> * \u6ca1\u6709 SourceMap\uff0c\u8c03\u8bd5\u8d39\u52b2\u3002<br \/> * \u6211\u7528 ramda \u5199\u4e86\u51e0\u4e2a\u5de5\u5177\u51fd\u6570\uff0c\u7136\u540e\u53d1\u73b0\u5305\u5927\u5c0f\u8d85\u4e86\uff0cramda \u5168\u88ab taro \u6253\u5305\u8fdb\u53bb\u4e86\uff0c\u5927\u7ea6 1.4M \u3002\u7528 babel \u63d2\u4ef6\u914d\u7f6e\u6309\u9700\u52a0\u8f7d\u4e5f\u6ca1\u7528\uff0cbabel \u63d2\u4ef6\u6267\u884c\u5728 taro \u62f7\u8d1d\u6587\u4ef6\u4e4b\u540e\u3002\u53ea\u80fd\u4e0d\u7528 ramda\uff0c\u4e00\u987f\u624b\u64b8<br \/> * typescript \u7684 optional chaining \u6ca1\u6cd5\u7528\u3002taro \u652f\u6301 typescript3.7\uff0c\u4f46\u5b83\u4e0d\u662f\u7528\u7684 ts-loader \u7f16\u8bd1 ts\u3002\u6240\u4ee5 ts \u7248\u672c\u662f 3.7 \u4e5f\u6ca1\u7528\u3002\u3002taro \u8fd8\u7ef4\u6301\u5728 babel6 \u4e0d\u77e5\u9053\u4ec0\u4e48\u65f6\u95f4\u80fd\u7528\u4e0a babel7<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q07vxqsj20u01qck0q.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\"> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q0dzbwgj20u01qcwtc.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\"> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q1uml6jj2076076wfd.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\">  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"811791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q6l3h6jj2076076wfd.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\"> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q76k45cj20u01qcwtc.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\"> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/83f914a2ly1gb1q7bonf8j20u01qck0q.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u5206\u4eab\u4e0b\u9047\u5230\u7684\u95ee\u9898\"> <\/p>\n<p>\u73b0\u5728\u5fae\u535a\u5f53\u56fe\u5e8a\u7528\u4e0d\u4e86\u4e86\u4e48\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kirscheis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             switch \u4e0a\u90fd\u6709\u4ee5\u6492\u4e86\uff0c\u6211\u706b\u661f\u4e86<\/p>\n<p>\u60f3\u8d77\u4e86\u5f53\u5e74\u80cc wiki \u7684\u60e8\u72b6                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811793\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sethverlo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5367\u69fd\uff01\u4ee5\u6492\uff01\uff01\uff01\u6211\u8d85\u7231\uff01\uff01\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811794\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/s2.ax1x.com\/2020\/01\/19\/194aQA.jpg<br \/>https:\/\/s2.ax1x.com\/2020\/01\/19\/194Nzd.jpg<br \/>https:\/\/s2.ax1x.com\/2020\/01\/19\/194YJe.jpg<br \/>https:\/\/s2.ax1x.com\/2020\/01\/19\/194JiD.jpg                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811795\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5df2\u7ecf\u4e0d\u4f1a\u7528 V2 \u4e86\u3002\u3002\u64e6\uff0c\u56fe\u90fd\u4e0d\u4f1a\u53d1\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811796\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u771f\u7684\u4e0d\u4f1a\u53d1\u56fe\u4e86\u3002\u3002\u3002\u54ea\u4e2a\u5927\u54e5\u5e2e\u5e2e\u5fd9\u628a\u94fe\u63a5\u56fe\u7247\u5728\u8bc4\u8bba\u53d1\u4e0b\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811797\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : as0300 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ![avatar]( https:\/\/s2.ax1x.com\/2020\/01\/19\/194JiD.jpg)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811798\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hellodudu86 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81f3\u4eca\u6ca1\u901a\u8fc7\u5b9d\u7bb1\u623f\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811799\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CodingPuppy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hellodudu86 \u5b9d\u7bb1\u623f\u662f\u5565\uff1f\u2026\u2026\u6211\u4e5f\u90fd\u662f\u4e71\u73a9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"811800\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hellodudu86 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b9d\u7bb1\u5c42\uff08 The Chest \uff09\u662f\u300a\u4ee5\u6492\u7684\u7ed3\u5408\uff1a\u91cd\u751f\u300b\u4e2d\u7684\u4e00\u4e2a\u5c42\uff0c\u901a\u8fc7\u5b9d\u7bb1\u5c42\u662f\u6e38\u620f\u7684\u6700\u7ec8\u76ee\u7684\u4e4b\u4e00\u3002\u548c\u5927\u6559\u5802\u4e00\u6837\uff0c\u5b9d\u7bb1\u5c42\u53ea\u6709\u4e00\u5c42\u3002\u5728\u5b9d\u7bb1\u5c42\u4e2d\uff0c\u89d2\u8272\u65e0\u6cd5\u5229\u7528\u70b8\u5f39\u6216\u5176\u4ed6\u5f62\u5f0f\u7684\u7206\u70b8\u6253\u5f00\u623f\u95f4\u7684\u95e8\u3002\u51e0\u4e4e\u6bcf\u4e2a\u666e\u901a\u623f\u95f4\u4e2d\u90fd\u6709\u4e4b\u524d\u5c42\u4e2d\u7684\u602a\u7269\u548c\u9996\u9886\u3002\u5728\u6700\u540e\uff0c\u5b9d\u7bb1\u5c42\u7684\u9996\u9886\u623f\u4e2d\uff0c\uff1f\uff1f\uff1f\u4f1a\u7b49\u5f85\u7740\u89d2\u8272\u7684\u5230\u6765\u3002<br \/>\u5728\u5b9d\u7bb1\u5c42\u548c\u9ed1\u6697\u5c42\u4e2d\uff0c\u9664\u7ea2\u7bb1\u5b50\u4ee5\u5916\u7684\u6240\u6709\u7bb1\u5b50\u4e2d\u90fd\u53ea\u4f1a\u51fa\u73b0\u5b9d\u7bb1\u623f\u9053\u5177\u6c60\u7684\u9053\u5177\u3002\u5b9d\u7bb1\u5c42\u7684\u521d\u59cb\u623f\u95f4\u4e2d\u6c38\u8fdc\u6709 4 \u4e2a\u91d1\u7bb1\u5b50\uff0c\u76f8\u5f53\u4e8e 4 \u4e2a\u9053\u5177\u3002\u8fd9\u5c31\u610f\u5473\u7740\u4f7f\u7528\u9053\u5177\u6216\u8005\u6548\u679c\u63d0\u9ad8\u4ea7\u751f\u7bb1\u5b50\u7684\u6982\u7387\u65f6\uff0c\u4f60\u4f1a\u5728\u5b9d\u7bb1\u5c42\u627e\u5230\u5f88\u591a\u5f88\u591a\u4e0d\u540c\u7684\u7269\u54c1\u3002\u8fd9\u5bf9\u6536\u96c6\u515a\u662f\u5f88\u6709\u5e2e\u52a9\u7684\u3002Collection Page\u3002<br \/>\u5982\u4f55\u8fdb\u5165<br \/>\u6709\u4e09\u79cd\u65b9\u6cd5\u5230\u8fbe\u5b9d\u7bb1\u5c42\uff1a<br \/>\u5728\u5927\u6559\u5802\u4e2d\uff0c\u51fb\u8d25\u4ee5\u6492 (\u9996\u9886)\uff0c\u7136\u540e\u643a\u5e26 Collectible 327 Icon.png \u5168\u5bb6\u798f\u8fdb\u5165\u5927\u5b9d\u7bb1\uff1b<br \/>\u5728\u5927\u6559\u5802\u4e2d\uff0c\u4f20\u9001\u5230\u9519\u8bef\u623f\uff1b<br \/>\u5728\u5927\u6559\u5802\u4e2d\uff0c\u8fdb\u5165\u9ed1\u5e02\uff0c\u5176\u4e2d\u6709\u901a\u5f80\u5b9d\u7bb1\u5c42\u7684\u5149\u67f1\u3002<\/p>\n<p>@CodingPuppy                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u73a9\u4ee5\u6492\u7684\u7ed3\u5408\u7684\u5417\uff1f\u82b1\u51e0\u5929\u65f6\u95f4\u505a\u4e86&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\/95464"}],"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=95464"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/95464\/revisions"}],"predecessor-version":[{"id":95471,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/95464\/revisions\/95471"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95464"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}