{"id":1448,"date":"2020-09-03T08:35:04","date_gmt":"2020-09-03T00:35:04","guid":{"rendered":"http:\/\/home.wangjianshuo.com\/cn\/?p=1448"},"modified":"2020-09-03T08:35:04","modified_gmt":"2020-09-03T00:35:04","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e8%af%b4%e8%af%bb%e4%bb%a3%e7%a0%81%e5%83%8f%e8%af%bb%e5%b0%8f%e8%af%b4%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/home.wangjianshuo.com\/cn\/20200903_%e4%b8%ba%e4%bb%80%e4%b9%88%e8%af%b4%e8%af%bb%e4%bb%a3%e7%a0%81%e5%83%8f%e8%af%bb%e5%b0%8f%e8%af%b4%ef%bc%9f.htm","title":{"rendered":"\u4e3a\u4ec0\u4e48\u8bf4\u8bfb\u4ee3\u7801\u50cf\u8bfb\u5c0f\u8bf4\uff1f"},"content":{"rendered":"<div id=\"wechat\">\n<p style=\"text-align: center;\"><img src=\"http:\/\/home.wangjianshuo.com\/cn\/2020\/09\/picture-1.jpg\"\/><\/p>\n<p>\u6765\uff0c \u968f\u624b\u90a3\u4e00\u5c0f\u6bb5 anime.js \u7684\u4ee3\u7801\u3002\u770b\u5176\u4e2d\u6700\u7b80\u5355\u7684\u4e00\u6bb5\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">\u00a0str:\u00a0<span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span>\u00a0=&gt;<\/span>\u00a0<span class=\"code-snippet__keyword\">typeof<\/span>\u00a0a\u00a0===\u00a0<span class=\"code-snippet__string\">'string'<\/span>,<\/span><\/code><\/pre>\n<\/section>\n<p>\u8fd9\u4e00\u53e5\uff0c\u5c31\u770b\u5f97\u51fa\u4f5c\u8005<span style=\"color: rgb(255, 76, 0);\">\u9063\u8bcd\u9020\u53e5<\/span>\u7684\u80fd\u529b\u3002<\/p>\n<p>\u6bd4\u5982\uff0c\u4ed6\u7528\u4e86<span style=\"color: rgb(255, 76, 0);\">\u4e09\u7b49\u53f7<\/span>\uff0c\u5c31\u662f <span style=\"color: rgb(136, 136, 136);\">===<\/span>\u00a0\uff0c\u800c\u4e0d\u662f\u53cc\u7b49\u53f7 <span style=\"caret-color: rgb(136, 136, 136);color: rgb(136, 136, 136);\">==\u00a0<\/span>\u3002\u8fd9\u4e24\u4e2a\u76f8\u7b49\u8fd0\u7b97\u5728\u8fd9\u91cc\u90fd\u662f\u53ef\u4ee5\u4f7f\u7528\u7684\uff0c\u8fd0\u884c\u7ed3\u679c\u5176\u5b9e\u662f\u4e00\u6837\u7684\uff0c\u4f46\u662f<span style=\"color: rgb(255, 76, 0);\">\u4e09\u7b49\u53f7<\/span>\u66f4\u52a0\u51c6\u786e\u7684\u8868\u8fbe\u4e86\u8fd9\u91cc\u4f5c\u8005\u60f3\u610f\u56fe\uff0c\u5c31\u662f\u8981\u201c\u4e25\u683c\u76f8\u7b49\uff0c\u4e0d\u4ec5\u4ec5\u503c\u8981\u76f8\u7b49\uff0c\u7c7b\u578b\u4e5f\u8981\u76f8\u7b49\u201d\u3002<\/p>\n<p>\u7c7b\u4f3c\u8fd9\u4e9b\uff0c\u968f\u624b\u53ef\u89c1\u3002\u7ec6\u5c0f\u7684\u5730\u65b9\uff0c\u770b\u8d77\u6765<span style=\"color: rgb(255, 76, 0);\">\u8d4f\u5fc3\u60a6\u76ee<\/span>\u3002\u800c\u5f88\u591a\u4e0d\u4e25\u8c28\u7684\u4ee3\u7801\uff0c\u8ba1\u7b97\u673a\u6267\u884c\u8d77\u6765\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662f\u7528\u8bcd\u4e0d\u591f\u51c6\u786e\uff0c\u603b\u6709\u5e2e\u4ed6\u6539\u6b63\u786e\u7684\u51b2\u52a8\u3002<\/p>\n<p>\u518d\u6bd4\u5982<span style=\"color: rgb(255, 76, 0);\">\u7bad\u5934\u51fd\u6570<\/span>\u7684\u5b9a\u4e49\uff0c\u8fd8\u6709 <span style=\"color: rgb(255, 76, 0);\">const<\/span> \u7684\u4f7f\u7528\u3002\u8fd9\u4e9b\u90fd\u662f ES6 \u7684\u65b0\u65b9\u6cd5\uff0c\u628a\u539f\u6765\u7684\u590d\u6742\u7684\u51fd\u6570\u5b9a\u4e49\u53d8\u5f97\u66f4\u52a0\u7b80\u6d01\uff0c\u800c\u4f5c\u8005\u4e5f\u5c31\u5f88\u5feb\u7684\u628a\u672c\u6765\u9700\u8981\u597d\u51e0\u884c\u7684\u4ee3\u7801\u53d8\u6210\u4e86\u7b80\u6d01\u7684\u4e00\u884c\u3002<\/p>\n<p>\u53e6\u5916\u4e00\u4e2a\u503c\u5f97\u6ce8\u610f\u7684\uff0c\u662f\u4e00\u79cd<span style=\"color: rgb(255, 76, 0);\">\u7c7b\u4f3c\u6392\u6bd4\u7684\u5199\u6cd5<\/span>\u3002\u672c\u6765\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u4ec0\u4e48\u7c7b\u578b\u662f\u4e00\u4e2a\u76f8\u5f53\u7410\u788e\u7684\u4e8b\u60c5\uff0c\u56e0\u4e3a\u6b63\u5982\u8fd9\u4e2a\u51fd\u6570\u5199\u7684\u90a3\u6837\uff0c\u4e0d\u540c\u7684\u7c7b\u578b\u7528\u4e86\u5b8c\u5168\u4e0d\u540c\u7684\u65b9\u6cd5\uff08\u8fd9\u4e5f\u662fJavaScript\u4e0d\u591f\u4f18\u7f8e\u7684\u5730\u65b9\uff09\uff0c\u5224\u65ad\u662f\u4e0d\u662f \u6570\u7ec4\u8981\u7528 Array.isArray(\u00a0)\uff0c\u800c\u5224\u65ad\u662f\u4e0d\u662f\u5b57\u7b26\u4e32\u5219\u7528\u4e86\u5b8c\u5168\u4e0d\u540c\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u800c\u8fd9\u4e00\u5c0f\u6bb5\u4ee3\u7801\u641c\u7f57\u4e86\u5404\u79cd\u9700\u8981\u5224\u65ad\u7684\u7c7b\u578b\uff0c\u7136\u540e\u5c01\u88c5\u5728\u4e00\u4e2a<span style=\"color: rgb(255, 76, 0);\">\u8f7b\u5de7\u7684\u5c0f\u51fd\u6570<\/span>\u91cc\u9762\uff0c\u4e00\u6bb5\u539f\u6765\u9700\u8981\u5199\u505a\u8fd9\u6837\u7684\u4ee3\u7801\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span>(stringContains(<span class=\"code-snippet__built_in\">Object<\/span>.prototype.toString.call(a),\u00a0<span class=\"code-snippet__string\">'Object'<\/span>))\u00a0dosomething();<\/span><\/code><\/pre>\n<\/section>\n<p>\u53d8\u6210\u4e86<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span>(<span class=\"code-snippet__keyword\">is<\/span>.obj(a))\u00a0dosomething;<\/span><\/code><\/pre>\n<\/section>\n<p>\u5e76\u4e14\u7edf\u4e00\u4e86\u6240\u6709\u7684\u7c7b\u578b\u7684\u8c03\u7528\u3002<\/p>\n<p>\u540c\u65f6\uff0c\u4ed6\u8fd8\u7528\u4e86\u4e09\u4e2a\u5b57\u6bcd\u7684\u4ee3\u7801\u6765\u4ee3\u8868\u5404\u79cd\u4e0d\u540c\u7684\u7c7b\u578b\uff0c\u8fd9\u4e09\u4e2a\u5b57\u6bcd\u7684\u547d\u540d\u65b9\u5f0f\u548c\u56fd\u9645\u673a\u573a\u7684\u4e09\u4f4d\u5b57\u6bcd\u4ee3\u7801\u6709\u5f02\u66f2\u540c\u5de5\u4e4b\u5999\uff0c\u8ba9\u4ee3\u7801\u7b80\u6d01\uff0c\u6574\u9f50\u3002\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u53ea\u6709\u6211\uff0c\u6211\u770b\u7740\u4ece\u4e0a\u5230\u4e0b\u6574\u9f50\u7684\u90a3\u4e00\u7ad6\u6392 <span style=\"color: rgb(123, 12, 0);\">a<\/span> \uff0c\u8fd8\u6709\u50cf\u519b\u961f\u4e00\u6837\u7684 <span style=\"color: rgb(123, 12, 0);\">=&gt;\u00a0<\/span>\u5c31\u6709\u79cd\u83ab\u540d\u7684\u5174\u594b\u3002<\/p>\n<p><span style=\"color: rgb(255, 76, 0);\">\u8fd9\u6bb5\u4ee3\u7801\u5f88\u50cf\u4e00\u4e2a\u52e4\u52b3\u7684\u5bb6\u5ead\u4e3b\u5987\uff0c\u628a\u5bb6\u91cc\u5b69\u5b50\u4e71\u4e03\u516b\u7cdf\u7684\u73a9\u5177\u6536\u7eb3\u5230\u4e00\u4e2a\u4e2a\u62bd\u5c49\u91cc\u9762\uff0c\u7136\u540e\u5728\u4e0a\u9762\u8d34\u4e0a\u6f02\u4eae\u7684\u6807\u7b7e\uff0c\u4ece\u6b64\u5bb6\u91cc\u5c31\u4e00\u4e0b\u5b50\u7115\u7136\u4e00\u65b0<\/span>\u3002\u8fd9\u6837\u7684\u5c0f\u4ee3\u7801\u4e3a\u4ec0\u4e48\u4e0d\u653e\u8fdb\u6807\u51c6\u5e93\u91cc\u9762\u5462\uff1f<\/p>\n<p>\u8fd9\u5c31\u662f\u4ee3\u7801\u7684\u7f8e\u611f\u3002\u4e00\u79cd\u80fd\u591f\u5efa\u7acb\u4e00\u4e2a\u63a5\u53e3\uff0c\u628a\u56e0\u4e3a\u5386\u53f2\u539f\u56e0\u800c\u4ea7\u751f\u7684\u590d\u6742\u6027\u5c4f\u853d\u8d77\u6765\uff0c\u4ece\u800c\u5728\u81ea\u5df1\u7684\u4e16\u754c\u53d8\u5f97\u4e00\u5207\u90fd\u4e95\u4e95\u6709\u6761\uff0cshipshape \u3002<\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u51fd\u6570\u7684<span style=\"color: rgb(255, 76, 0);\">\u987a\u5e8f<\/span>\u4e5f\u5f88\u6709\u8bb2\u7a76\uff0c\u5c31\u5728\u8fd9\u51e0\u884c\u91cc\u9762\uff0c\u524d\u9762\u5b9a\u4e49\u7740\uff0c\u540e\u9762\u7acb\u9a6c\u5c31\u662f\u7528\u8d77\u6765\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"typescript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">const<\/span> is\u00a0=\u00a0{<\/span><\/code><code><span class=\"code-snippet_outer\">arr: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> <span class=\"code-snippet__built_in\">Array<\/span>.isArray(a),<\/span><\/code><code><span class=\"code-snippet_outer\">obj: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> stringContains(<span class=\"code-snippet__built_in\">Object<\/span>.prototype.toString.call(a), <span class=\"code-snippet__string\">'Object'<\/span>),<\/span><\/code><code><span class=\"code-snippet_outer\">pth: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> is.obj(a) &amp;&amp; a.hasOwnProperty(<span class=\"code-snippet__string\">'totalLength'<\/span>),<\/span><\/code><code><span class=\"code-snippet_outer\">svg: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> a <span class=\"code-snippet__keyword\">instanceof<\/span> SVGElement,<\/span><\/code><code><span class=\"code-snippet_outer\">inp: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> a <span class=\"code-snippet__keyword\">instanceof<\/span> HTMLInputElement,<\/span><\/code><code><span class=\"code-snippet_outer\">dom: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> a.nodeType || is.svg(a),<\/span><\/code><code><span class=\"code-snippet_outer\">str: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> <span class=\"code-snippet__keyword\">typeof<\/span> a === <span class=\"code-snippet__string\">'string'<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">fnc: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> <span class=\"code-snippet__keyword\">typeof<\/span> a === <span class=\"code-snippet__string\">'function'<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">und: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> <span class=\"code-snippet__keyword\">typeof<\/span> a === <span class=\"code-snippet__string\">'undefined'<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">hex: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> \/(^#[<span class=\"code-snippet__number\">0<\/span><span class=\"code-snippet__number\">-9<\/span>A-F]{<span class=\"code-snippet__number\">6<\/span>}$)|(^#[<span class=\"code-snippet__number\">0<\/span><span class=\"code-snippet__number\">-9<\/span>A-F]{<span class=\"code-snippet__number\">3<\/span>}$)\/i.test(a),<\/span><\/code><code><span class=\"code-snippet_outer\">rgb: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> \/^rgb\/.test(a),<\/span><\/code><code><span class=\"code-snippet_outer\">hsl: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> \/^hsl\/.test(a),<\/span><\/code><code><span class=\"code-snippet_outer\">col: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> (is.hex(a) || is.rgb(a) || is.hsl(a)),<\/span><\/code><code><span class=\"code-snippet_outer\">key: <span class=\"code-snippet__function\"><span class=\"code-snippet__params\">a<\/span> =&gt;<\/span> !defaultInstanceSettings.hasOwnProperty(a) &amp;&amp; !defaultTweenSettings.hasOwnProperty(a) &amp;&amp; a !== <span class=\"code-snippet__string\">'targets'<\/span> &amp;&amp; a !== <span class=\"code-snippet__string\">'keyframes'<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"color: rgb(123, 12, 0);\">pth( ) <\/span>\u57fa\u4e8e <span style=\"color: rgb(123, 12, 0);\">obj( ) <\/span>\u7684\u5224\u65ad\u6765\u5b9a\u4e49\uff0c<span style=\"color: rgb(123, 12, 0);\">dom( )<\/span>\u00a0\u7528\u5230\u4e86 <span style=\"color: rgb(123, 12, 0);\">svg( )<\/span>\uff0c\u800c <span style=\"color: rgb(123, 12, 0);\">col( )<\/span>\u00a0\u7528\u4e86\u524d\u9762\u7684 <span style=\"color: rgb(123, 12, 0);\">hex( )<\/span>\uff0c<span style=\"color: rgb(123, 12, 0);\">rgb( )<\/span>\uff0c<span style=\"color: rgb(123, 12, 0);\">hsl( ) <\/span>\u3002\u3002\u3002\u3002\u8fd9\u6837\u5b50\u4e00\u6b65\u6b65\u6e10\u8fdb\uff0c\u6bcf\u4e00\u6b65\u90fd\u6e05\u6670\u7684\u5728\u524d\u9762\u4e00\u6b65\u7684\u57fa\u7840\u4e0a\u518d\u8d70\u4e00\u6b65\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u5c31\u597d\u50cf\u4e1c\u91ce\u572d\u543e\u7684\u5c0f\u8bf4\u91cc\u9762\u7684\u4e00\u4e2a\u60ac\u5ff5\u4e0a\u53e0\u52a0\u4e00\u4e2a\u60ac\u5ff5\uff0c\u76f4\u5230\u628a\u8fd9\u4e00\u6574\u6bb5\u4ee3\u7801\u770b\u5b8c\u4e86\uff0c\u624d\u77e5\u9053\u6574\u4f53\u7684\u6784\u601d\u3002<\/p>\n<p>\u8fd9\u4e00\u6bb5\u4ee3\u7801\u662f\u6211\u5728\u770b <span style=\"color: rgb(123, 12, 0);\">anime.js<\/span> \u7684\u65f6\u5019\u968f\u624b\u62ff\u6765\u7684\uff0c\u56e0\u4e3a\u76f8\u5bf9\u6bd4\u8f83\u5b8c\u6574\uff0c\u4f46\u66f4\u7cbe\u5f69\u7684\u662f\u5728\u6574\u4e2a\u67b6\u6784\u7684\u8bbe\u8ba1\u548c\u7ec4\u5408\u4e0a\u9762\u3002<\/p>\n<p>\u4f5c\u8005\u7528\u4e86\u6700\u5c11\u7684\u4ee3\u7801\u91cf\u628a\u4e92\u8054\u7f51\u4e0a\u6563\u843d\u5404\u5904\u7684\u7f13\u52a8\u51fd\u6570\uff08easing function\uff09\u7b49\u7b49\u529f\u80fd\u90fd\u7edf\u4e00\u5316\u4ee5\u540e\u653e\u5728\u81ea\u5df1\u7684\u5c0f\u5de5\u5177\u7bb1\u91cc\u9762\u3002\u770b\u5f97\u6211\u773c\u82b1\u7f2d\u4e71\uff0c\u6df1\u611f\u529f\u529b\u5f88\u6df1\u3002<\/p>\n<p>\u9664\u4e86\u300a<a data-itemshowtype=\"0\" data-linktype=\"2\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MjM5NzI0Mjg0MA==&amp;mid=2652371662&amp;idx=1&amp;sn=88b1083dd05f1381eabb1beda7c47a54&amp;chksm=bd3fa8798a48216f764c86605f36accd9d6164d19992bb5671a25bfa9ffbfcd7ae3bbaeacbe3&amp;scene=21#wechat_redirect\" tab=\"innerlink\" target=\"_blank\" rel=\"noopener noreferrer\">\u5982\u4f55\u5224\u65ad\u4e00\u6bb5\u7a0b\u5e8f\u662f\u5426\u4f18\u7f8e\uff1f<\/a>\u300b\u63d0\u5230\u7684\u77ed\u4ee5\u5916\uff0c\u6bcf\u4e2a\u51fd\u6570\u5982\u679c\u5f88\u77ed\u4e5f\u662f\u4f18\u7f8e\u7684\u4f53\u73b0\u3002\u4ee5 anime.js \u4e3a\u4f8b\uff0c\u91cc\u9762\u5927\u591a\u6570\u7684\u51fd\u6570\u4f53\u90fd\u662f\u4e09\u884c\u8bed\u53e5\u4ee5\u5185\uff0c\u751a\u81f3\u6700\u591a\u7684\u90fd\u662f\u4e00\u884c\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u5c31\u5982\u540c\u9898\u56fe\u7684\u90a3\u6bb5\u4e00\u6837\u3002\u5c31\u662f\u8fd9\u6837\u7684\u6bcf\u4e2a\u51fd\u6570\u53ea\u52a0\u4e00\u70b9\u70b9\u529f\u80fd\uff0c\u7136\u540e\u4e0d\u65ad\u7684\u7ec4\u5408\uff0c\u5c31\u5b8c\u6210\u4e86\u590d\u6742\u7684\u529f\u80fd\u3002\u8fd9\u4e2a\u548c\u6211\u4eec\u4e00\u76f4\u559c\u6b22\u7684\u4e50\u9ad8\u662f\u6982\u5ff5\uff0c\u5c31\u662f\u7528\u6700\u5c0f\u7684\u76f8\u540c\u7684\u5c0f\u5757\uff0c\u4e0d\u65ad\u7684\u91cd\u590d\u7684\u6784\u5efa\u51fa\u4efb\u4f55\u60f3\u8981\u6784\u5efa\u7684\u7ed3\u6784\u51fa\u6765\u3002<\/p>\n<p><strong>\u770b\u4ee3\u7801\u5982\u5c0f\u8bf4<\/strong><\/p>\n<p>\u770b\u4ee3\u7801\uff0c\u5c31\u50cf\u770b\u4e00\u90e8\u5c0f\u8bf4\uff0c\u6709\u597d\u7684\uff0c\u6709\u5dee\u7684\u3002\u4e0d\u5e78\u7684\u662f\uff0c\u9664\u4e86\u6587\u7b14\u7279\u522b\u5dee\u7684\u5c0f\u8bf4\uff0c<span style=\"color: rgb(255, 76, 0);\">\u5f88\u591a\u5c0f\u8bf4\u9700\u8981\u82b1\u65f6\u95f4\u770b\u5b8c\u7ed3\u5c40\uff0c\u624d\u77e5\u9053\u662f\u4e0d\u662f\u771f\u7684\u597d\u770b<\/span>\u3002\u4ee3\u7801\u5728\u8fd9\u4e00\u70b9\u4e5f\u5f88\u7c7b\u4f3c\u3002\u867d\u7136\u770b\u4e00\u5c0f\u6bb5\u5c31\u77e5\u9053\u4e2a\u5927\u6982\uff0c\u4f46\u5982\u679c\u771f\u7684\u60f3\u8bc4\u4f30\u7684\uff0c\u8fd8\u662f\u9700\u8981\u8010\u7740\u6027\u5b50\u770b\u4e0b\u53bb\uff0c\u770b\u5230\u6700\u540e\u624d\u80fd\u6709\u66f4\u51c6\u786e\u7684\u5224\u65ad\u3002<\/p>\n<p>\u5982\u679c\u6709\u4eba\u628a\u4ee3\u7801\u50cf\u5c0f\u8bf4\u4e00\u6837\u8fdb\u884c\u63a8\u8350\u5c31\u597d\u4e86\uff0c\u53ef\u4ee5\u8ba9\u9664\u4e86\u8ba1\u7b97\u673a\u4ee5\u5916\u7684\u4eba\u7c7b\uff0c\u4e5f\u53ef\u4ee5\u4eab\u53d7\u9605\u8bfb\u4ee3\u7801\u7684\u4e50\u8da3\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8981\u8bfb\u4ee3\u7801\u5462\uff1f<span style=\"color: rgb(255, 76, 0);\">\u9605\u8bfb\u4ee3\u7801\u6700\u5927\u7684\u597d\u5904\u662f\u5b66\u4e60<\/span>\u3002\u522b\u4eba\u7684\u9063\u8bcd\u9020\u53e5\u7684\u65b9\u6cd5\uff0c\u7ec4\u7ec7\u6bb5\u843d\u7684\u65b9\u6cd5\uff0c\u751a\u81f3\u51fd\u6570\u547d\u540d\u7684\u65b9\u6cd5\uff0c\u90fd\u662f\u53ef\u4ee5\u76f4\u63a5\u501f\u9274\uff0c\u7528\u5728\u81ea\u5df1\u7684\u4ee3\u7801\u91cc\u9762\u7684\u3002<\/p>\n<p>\u719f\u8bfb\u5510\u8bd7\u4e09\u767e\u9996\uff0c\u4e0d\u4f1a\u541f\u8bd7\u4e5f\u4f1a\u541f\u3002\u4ee3\u7801\u5c4a\u4e5f\u662f\u540c\u6837\u7684\u9053\u7406\u3002\u5efa\u8bae\u5e0c\u671b\u5199\u51fa\u4f18\u7f8e\u7684\u4ee3\u7801\u7684\u540c\u5b66\uff0c\u5e94\u8be5\u6ca1\u4e8b\u513f\u8bfb\u51e0\u6bb5\u4f18\u79c0\u7684\u4ee3\u7801\uff0c\u7edd\u5bf9\u6bd4\u5199\u4ee3\u7801\u7684\u65f6\u95f4\u66f4\u5212\u7b97<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\uff0c \u968f\u624b\u90a3\u4e00\u5c0f\u6bb5 anime.js \u7684\u4ee3\u7801\u3002\u770b\u5176\u4e2d\u6700\u7b80\u5355\u7684\u4e00\u6bb5\uff1a \u00a0str:\u00a0a\u00a0=&gt;\u00a0typeof\u00a0 &hellip; <a href=\"https:\/\/home.wangjianshuo.com\/cn\/20200903_%e4%b8%ba%e4%bb%80%e4%b9%88%e8%af%b4%e8%af%bb%e4%bb%a3%e7%a0%81%e5%83%8f%e8%af%bb%e5%b0%8f%e8%af%b4%ef%bc%9f.htm\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4e3a\u4ec0\u4e48\u8bf4\u8bfb\u4ee3\u7801\u50cf\u8bfb\u5c0f\u8bf4\uff1f<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1448"}],"collection":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/comments?post=1448"}],"version-history":[{"count":1,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1448\/revisions"}],"predecessor-version":[{"id":1449,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/posts\/1448\/revisions\/1449"}],"wp:attachment":[{"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/media?parent=1448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/categories?post=1448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.wangjianshuo.com\/cn\/wp-json\/wp\/v2\/tags?post=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}