{"id":200861,"date":"2020-11-23T06:52:30","date_gmt":"2020-11-22T22:52:30","guid":{"rendered":"http:\/\/4563.org\/?p=200861"},"modified":"2020-11-23T06:52:30","modified_gmt":"2020-11-22T22:52:30","slug":"%e6%96%87%e5%ad%97%e5%ae%9e%e6%97%b6%e6%af%94%e5%af%b9%e5%ba%94%e8%af%a5%e7%94%a8%e4%bb%80%e4%b9%88%e6%80%9d%e8%b7%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=200861","title":{"rendered":"\u6587\u5b57\u5b9e\u65f6\u6bd4\u5bf9\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6587\u5b57\u5b9e\u65f6\u6bd4\u5bf9\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Eyon <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u4eb2\u621a\u8981\u5b66\u7535\u8111\uff0c\u6211\u558a\u5979\u5148\u5b66\u6253\u5b57\u3002\u4e8e\u662f\u5c31\u6709\u4e2a\u7ec3\u6253\u5b57\u5c0f\u7a0b\u5e8f\u7684\u9700\u6c42\uff0c\u5979\u7f51\u8d2d\u4e86\u4e00\u4e2a\u952e\u76d8\u5c31\u53ef\u4ee5\u8fde\u624b\u673a\u7ec3\u4e60\u4e86\u3002<\/p>\n<p>\u5982\u4e0b\u56fe\uff0c\u76ee\u524d\u6211\u7684\u65b9\u6848\u662f\u5b9e\u65f6\u8bfb\u53d6\u8f93\u5165\u6587\u5b57\u7684\u957f\u5ea6\uff0c\u548c\u539f\u6587\u6240\u5bf9\u5e94\u957f\u5ea6\u7684\u5207\u7247\u505a\u6bd4\u5bf9\uff0c\u5982\u679c\u76f8\u7b49\u5c31\u628a\u539f\u6587\u7684\u5207\u7247\u653e\u5165\u4e00\u4e2a class=red \u7684 text \u6807\u7b7e\u91cc\u3002<\/p>\n<p>\u4f46\u662f\u6709\u4e2a\u95ee\u9898\uff0c\u8fd9\u6837\u8981\u6c42\u6240\u6709\u7684\u8f93\u5165\u6587\u5b57\u90fd\u5fc5\u987b\u6b63\u786e\uff0c\u5982\u679c\u5176\u4e2d\u6709\u4e00\u4e2a\u6587\u5b57\u4e0d\u6b63\u786e\u90fd\u4e0d\u4f1a\u53d8\u7ea2\uff08\u56e0\u4e3a\u4e0d\u76f8\u7b49\uff09\uff0c\u8bf7\u8d50\u6559\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def\uff1f<\/p>\n<p> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201125_5fbdde553db39.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u6587\u5b57\u5b9e\u65f6\u6bd4\u5bf9\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def\uff1f\">  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4300509\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LxExExl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u6ca1\u6709\u73b0\u6210\u7684 app \u5417\uff1f<\/p>\n<p>\u5c0f\u65f6\u5019 pc \u4e0a\u6709\u91d1\u5c71\u6253\u5b57\u901a<\/p>\n<p>\u6211\u8fd8\u8bb0\u5f97\u7b2c\u4e00\u53e5\u8bdd\u662f when you \u5f00\u5934\u7684&#8230;                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300510\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jdhao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u7528\u7535\u8111\u6253\u5b57\u4e0d\u5c31\u884c\u4e86\uff0c\u8fd8\u5f04\u4ec0\u4e48\u624b\u673a\u554a\u3002\u3002\u4e0a\u8bf4\u7684\u91d1\u5c71\u6253\u5b57\u901a\u7ec3\u5b57\u591a\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300511\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Eyon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u4e24\u4f4d\u90fd\u90fd\u8dd1\u9898\u4e86\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300512\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jdhao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Eyon \u8981\u6253\u5b57\u5c31\u89e3\u51b3\u6253\u5b57\u7684\u95ee\u9898\uff0c\u518d\u641e\u4e2a\u5c0f\u7a0b\u5e8f\uff0c\u5c82\u4e0d\u662f\u591a\u6b64\u4e00\u4e3e\u3002\u5f53\u7136\u4f60\u8bf4\u4f60\u6709\u5174\u8da3\u5b9e\u73b0\u8fd9\u6837\u7684\u5c0f\u7a0b\u5e8f\uff0c\u90a3\u80af\u5b9a\u6ca1\u95ee\u9898\u554a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300513\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u610f\u601d\u662f\u4e0d\u4e70\u7535\u8111 \u5148\u7528\u624b\u673a\u548c\u952e\u76d8\u7ec3\u4e60\u6253\u5b57\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300514\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lyy16384 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u5c31\u662f\u4e2a diff \u529f\u80fd\u554a<br \/>\u4e0d\u8fc7\u6211\u89c9\u5f97\u9010\u5b57\u5bf9\u6bd4\u5c31\u591f\u7528\u4e86\uff0c\u7f3a\u70b9\u662f\u9519\u4f4d\u4f1a\u5168\u62a5\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DL9412 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5207\u5206\u5f00\u6765\u9010\u5b57\u6bd4\u5bf9\uff1f\u968f\u624b\u5199\u4e86\u4e2a\uff0c\u5982\u679c\u4e0d\u591a\u5b57\u6f0f\u5b57\u662f\u597d\u4f7f\u7684\uff0c\u5982\u679c\u591a\u5b57\u6f0f\u5b57\u7684\u8bdd\u5c31\u4e0d\u597d\u8bf4\u4e86\u3002<br \/>\u731c\u4e2a\u601d\u8def\uff0c\u4e0d\u5339\u914d\u65f6\u5411\u540e\u641c\u7d22\u5339\u914d\u5b57\u7b26\uff0c\u5230\u6807\u70b9\u6216\u53e5\u5c3e\u5219\u653e\u5f03\uff0c\u4e0b\u4e00\u4e2a\u5b57\u7b26\u4ece\u4e0a\u4e2a\u5339\u914d\u6210\u529f\u7684\u4f4d\u7f6e\u5f00\u59cb\u641c\u7d22<\/p>\n<p>&#8220;`<br \/>&lt;style&gt;<br \/> .red{<br \/> color: red;<br \/> }<br \/>&lt;\/style&gt;<br \/>&lt;div id=&#8221;textblock&#8221;&gt;&lt;\/div&gt;<br \/>&lt;textarea id=&#8221;inputtext&#8221;&gt;&lt;\/textarea&gt;<br \/>&lt;script&gt;<br \/> let text = `\u4f46\u662f\u6709\u4e2a\u95ee\u9898\uff0c\u8fd9\u6837\u8981\u6c42\u6240\u6709\u7684\u8f93\u5165\u6587\u5b57\u90fd\u5fc5\u987b\u6b63\u786e\uff0c\u5982\u679c\u5176\u4e2d\u6709\u4e00\u4e2a\u6587\u5b57\u4e0d\u6b63\u786e\u90fd\u4e0d\u4f1a\u53d8\u7ea2\uff08\u56e0\u4e3a\u4e0d\u76f8\u7b49\uff09\uff0c\u8bf7\u8d50\u6559\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def`<br \/> let inp = document.getElementById(&#8216;inputtext&#8217;)<br \/> let textblock = document.getElementById(&#8216;textblock&#8217;)<\/p>\n<p> render()<\/p>\n<p> inp.oninput = e =&gt; render()<\/p>\n<p> function render(){<br \/> let inputarr = inp.value.split(&#8221;)<br \/> let arr = text.split(&#8221;).map((v,i) =&gt; v==inputarr[i]?`&lt;span class=&#8221;red&#8221;&gt;${v}&lt;\/span&gt;`:v)<br \/> textblock.innerHTML = arr.join(&#8221;)<br \/> }<br \/>&lt;\/script&gt;<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300516\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sevenyangdx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u5b66\u7535\u8111\uff0c\u4e3a\u5565\u4e0d\u4e70\u53f0\u7535\u8111\u6b63\u513f\u516b\u7ecf\u7684\u5b66\uff0c\u8981\u7528\u624b\u673a\u5b66\u62fc\u97f3\u7684\u8bdd\uff0c\u76f4\u63a5\u5168\u952e\u76d8\u8f93\u5165\u6cd5\u4e0d\u5c31\u884c\u4e86\u4e48\u3002\u96be\u9053\u7528\u952e\u76d8\u662f\u5e26\u7740\u51fa\u95e8\u7528\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4300517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Eyon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DL9412 \u975e\u5e38\u611f\u8c22\u3002<\/p>\n<p>\u4e00\u76f4\u6ca1\u6709\u60f3\u7528\u9010\u5b57\u6bd4\u5bf9\u7684\u65b9\u6848\uff0c\u5c31\u89c9\u5f97\u4e00\u7bc7\u6587\u7ae0\u4e0b\u6765\u5168\u90e8\u62c6\u5206\u6587\u5b57\u548c\u6807\u70b9\uff0c\u8fd0\u7b97\u8981\u6c42\u6bd4\u8f83\u9ad8\u4e86\u3002\u5f53\u7136\u6211\u5373\u4f7f\u9010\u5b57\u6bd4\u5bf9\u4e5f\u5199\u4e0d\u51fa\u6765\u4f60\u8fd9\u4e48\u6f02\u4eae\u7684\u4ee3\u7801\u54c8\uff0c\u538b\u6839\u513f\u6ca1\u5b66\u8fc7 js \u3002map \u771f\u662f\u4e2a\u597d\u4e1c\u897f\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u5b9e\u65f6\u6bd4\u5bf9\u5e94\u8be5\u7528\u4ec0\u4e48\u601d\u8def\uff1f \u8cc7\u6df1&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\/200861"}],"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=200861"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200861\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200861"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}