{"id":29963,"date":"2024-11-25T10:53:58","date_gmt":"2024-11-25T02:53:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29963\/"},"modified":"2024-11-25T10:53:58","modified_gmt":"2024-11-25T02:53:58","slug":"%e5%88%86%e4%ba%ab%e4%b8%80%e4%b8%aa%e6%9c%ac%e4%ba%ba%e7%9a%84%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e5%bf%83%e5%be%97","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29963\/","title":{"rendered":"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97"},"content":{"rendered":"<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e5f\u5df2\u51fa\u6765\u6709\u4e00\u6bb5\u65f6\u95f4\u4e86\uff0c\u6700\u8fd1\u5199\u4e86\u51e0\u6b3e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u9879\u76ee\uff0c\u4eca\u5929\u6765\u8bf4\u8bf4\u611f\u53d7\u3002<\/p>\n<p>\u9996\u5148\u5f00\u53d1\u4e00\u6b3e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u6700\u4e3b\u8981\u7684\u5c31\u662f\u9488\u5bf9\u4e8e\u516c\u53f8\u6765\u8fd0\u8425\u7684\uff0c\u56e0\u4e3a\uff0c\u5728\u7533\u8bf7appid(\u5fae\u4fe1\u5c0f\u7a0b\u5e8fID\u53f7)\u65f6\u5019\uff0c\u9700\u8981\u586b\u5199\u76f8\u5173\u7684\u516c\u53f8\u8ba4\u8bc1\u4fe1\u606f\u5982\uff0c\u8425\u4e1a\u6267\u7167\u7b49<\/p>\n<p>\u518d\u6b21\u5c31\u662f\u7528\u4e00\u4e2a\u672a\u66fe\u5f00\u901a\u8fc7\u516c\u4f17\u53f7\u7684QQ\u53f7\u6216\u5fae\u4fe1\u53f7\u6765\u6ce8\u518c\u4e00\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u53f7\u3002<\/p>\n<p>\u6700\u540e\uff0c\u4e0b\u8f7d\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u3002<\/p>\n<p>\u7531\u4e8e\u8fd9\u91cc\uff0c\u6211\u4eec\u66f4\u591a\u7684\u5173\u6ce8\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e9bapp,\u800c\u4e0d\u662f\u79d1\u8c31\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u6545\u5728\u6b64\u4e0d\u5728\u8fc7\u591a\u7684\u89e3\u91ca\uff0c\u8be6\u7ec6\u7684\u8bf4\u660e\uff0c\u53ef\u4ee5\u53bb\u5b98\u7f51\u5e2e\u52a9\u6587\u6863\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u62ff\u81ea\u5df1\u7684\u9879\u76ee\u5728\u4e00\u6b65\u4e00\u6b65\u7684\u8bf4\u660e\u5e76\u5f00\u53d1\u5427\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5fae\u4fe1app\u7684\u622a\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/d527b1af6c579fee814ba0497b2b336d-0.gif\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u770b\u5230\u4e0a\u56fe\uff0c\u5c0f\u4f19\u4f34\u4eec\u5927\u81f4\u6709\u4e00\u4e2a\u4e86\u89e3\uff0c\u8fd9\u4e2a\u662f\u8c03\u8bd5\u5de5\u5177\u4e2d\u7684\uff0c\u4e00\u4e9b\u6548\u679c\u6ca1\u6709\u5728\u771f\u673a\u4e0a\u597d\u770b\u3002<\/p>\n<p>\u7531\u4e8e\u5728\u5f00\u53d1\u4e2d\uff0c\u672c\u4ee5\u4e3a\u753b\u9762\u4e0d\u662f\u5f88\u6d41\u5229\uff0c\u5b9e\u9645\u4e0a\u5b8c\u5168\u51fa\u4e4e\u6211\u7684\u610f\u6599\uff0c\u52a8\u753b\u6548\u679c\u5f88\u6d41\u7545\uff0c\u53ef\u4ee5\u4e0eios,andriod app\u76f8\u5ab2\u7f8e\uff0c\u4ee5\u540e\u6709\u65f6\u95f4\u8bb2\u8bb2\u5f00\u53d1\u5176\u5b83app\u7684\u76f8\u5173\u4f8b\u5b50\u3002<\/p>\n<p>\u5728\u4ecb\u7ecd\u8fd9\u4e2a\u6587\u7ae0\u524d\uff0c\u5047\u8bbe\u7528\u6237\u90fd\u5df2\u770b\u8fc7\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u76f8\u5173\u6587\u6863\u3002<\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u57fa\u672c\u4e0a\u662f\u6309\u7167\u5fae\u4fe1\u539f\u6709\u7684\u6587\u4ef6\u7ed3\u6784\u6765\u7684\uff0c\u5e76\u6ca1\u6709\u989d\u5916\u7684\u53bb\u6dfb\u52a0\u7279\u522b\u591a\u7684\u6587\u4ef6\u7ed3\u6784\uff0c\u56e0\u4e3a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u89c4\u5b9a\uff0c\u9879\u76ee\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc71M\uff0c\u8981\u6c42\u6211\u4eec\u5c3d\u53ef\u80fd\u7684\u538b\u7f29\u5c0f\u7a0b\u5e8f\u4ee3\u7801\u6216\u5176\u5b83\u56fe\u7247\u6587\u4ef6\u7b49\uff0c\u4e0b\u9762\u662f\u5fae\u4fe1app\u6587\u4ef6\u7ed3\u6784\u6574\u4f53\u622a\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/18170eaee26b7d0e3cbb4b319929cde6-1.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe1\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe1\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>1.app.js \u4e3b\u8981\u662f\u5168\u5c40\u516c\u5171\u7684js\u65b9\u6cd5\u58f0\u660e\u53ca\u8c03\u7528\u6240\u5728\u7684\u6587\u4ef6<\/p>\n<p>2.app.json \u662f\u5c0f\u7a0b\u5e8f\u6574\u4e2a\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6240\u4ee5\u6709\u7684\u9875\u9762\u90fd\u5728\u8981\u6b64\u6ce8\u518c\uff0c\u4e0d\u7136\u4e0d\u5141\u8bb8\u8bbf\u95ee\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09<\/p>\n<p>3.app.wxss \u662f\u5c0f\u7a0b\u5e8f\u5168\u5c40\u7684css\u6587\u4ef6\uff0c\u516c\u5171css\u5199\u5728\u6b64\u6700\u597d\u4e0d\u8fc7\u7684\u4e86<\/p>\n<p>4.pages\u4e0b\u662f\u5bf9\u5e94\u7740\u6240\u6709\u9875\u9762\uff0c\u6bcf\u4e2a\u9875\u9762\uff0c\u53ef\u4ee5\u6dfb\u52a0\u56db\u79cd\u7c7b\u578b\u7684\u6587\u4ef6\uff0c.json\uff0c.wxss\uff0c.wxml\uff0c.js \uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09<\/p>\n<p>5.utils \u662f\u6211\u4eec\u516c\u5171\u7684js\u5b58\u653e\u7684\u5730\u65b9\uff0c\u56e0\u4e3a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8981\u6c42\uff0c\u6bcf\u4e2ajs\u6587\u4ef6\u91cc\u7684\u65b9\u6cd5\u4e0d\u53ef\u4ee5\u76f4\u63a5\u5f15\u7528\u6216\u8c03\u7528\uff0c\u5fc5\u987b\u8981\u7528 module.exports\u65b9\u6cd5\u5bfc\u51fa\uff0c\u8fd9\u6837pages \u4e0b\u7684.js\u6587\u4ef6\u624d\u53ef\u4ee5\u8c03\u7528\u5230\u6211\u4eec\u5728\u6b64\u5199\u7684js\u65b9\u6cd5\u3002\u8fd9\u70b9\u7279\u522b\u8981\u6ce8\u610f<\/p>\n<p>1)app.json\u9875\u9762\u914d\u7f6e\u53ca\u6ce8\u518c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/18d2f62498c194fa2cb8446c5aed3a12-2.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe2\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe2\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>2)pages\u9875\u9762\u7ed3\u6784:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/18d2f62498c194fa2cb8446c5aed3a12-3.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe3\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe3\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u5f00\u59cb\u8be6\u7ec6\u7684\u8bb2\u89e3\u6bcf\u4e2a\u9875\u9762<\/p>\n<h2>\u4e00\u3001\u9996\u9875<\/h2>\n<p>\u9996\u9875\u5206\u4e3a\u56db\u4e2a\u6587\u4ef6\u7ec4\u6210\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5177\u4f53\u7684\u9875\u9762\u529f\u80fd\uff0c\u4e0a\u9762\u5df2\u8bf4\u8fc7\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/72a326ae6d248c219d284226b8978d9e-4.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe4\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe4\" \/><\/p>\n<p>&nbsp;\u4e0b\u9762\u6765\u770b\u4e0b\uff0cindex.wxml\u6548\u679c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/72a326ae6d248c219d284226b8978d9e-5.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe5\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe5\" \/><\/p>\n<p>&nbsp;\u6700\u4e0a\u9762\u7684\u201c\u6765\u8fd0\u5427\u201d\u6807\u9898\uff0c\u5728index.json\u6587\u4ef6\u4e0b\u5b9a\u4e49\u7684\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u53ef\u4ee5\u7528\u4e0d\u540c\u7684.json\u6765\u5b9a\u4e49\uff0c\u5f53\u7136\u4ee3\u7801\u4e5f\u53ef\u4ee5\u52a8\u6001\u6539\u53d8\u5b83<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/72a326ae6d248c219d284226b8978d9e-6.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe6\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe6\" \/><\/p>\n<p>\u5f88\u7b80\u5355\u5427\uff0c\u6807\u9898\u5c31\u8fd9\u4e48\u7b80\u5355\u7684\u51fa\u73b0\u4e86\u3002<\/p>\n<p><em>1\uff09\u63a5\u4e0b\u6765\u770b\u770b\u6a2a\u5411\u6eda\u52a8\u7684banner,<\/em><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-7.gif\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe7\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe7\" \/><\/p>\n<p>index.wxml\u8fd9\u6837\u6765\u63cf\u8ff0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-8.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe8\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe8\" \/><\/p>\n<p>\u90a3\u4e48swiper\u662f\u4ec0\u4e48\u4e1c\u4e1c\u5462\uff1f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5e2e\u52a9\u6587\u6863\u8fd9\u6837\u8bf4\u660e\u7684&nbsp;swiper\u6ed1\u5757\u89c6\u56fe\u5bb9\u5668<\/p>\n<table style=\"height: 180px;width: 880px\">\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>indicator-dots<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u663e\u793a\u9762\u677f\u6307\u793a\u70b9<\/td>\n<\/tr>\n<tr>\n<td>autoplay<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u81ea\u52a8\u5207\u6362<\/td>\n<\/tr>\n<tr>\n<td>current<\/td>\n<td>Number<\/td>\n<td>0<\/td>\n<td>\u5f53\u524d\u6240\u5728\u9875\u9762\u7684 index<\/td>\n<\/tr>\n<tr>\n<td>interval<\/td>\n<td>Number<\/td>\n<td>5000<\/td>\n<td>\u81ea\u52a8\u5207\u6362\u65f6\u95f4\u95f4\u9694<\/td>\n<\/tr>\n<tr>\n<td>duration<\/td>\n<td>Number<\/td>\n<td>500<\/td>\n<td>\u6ed1\u52a8\u52a8\u753b\u65f6\u957f<\/td>\n<\/tr>\n<tr>\n<td>circular<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u91c7\u7528\u8854\u63a5\u6ed1\u52a8<\/td>\n<\/tr>\n<tr>\n<td>bindchange<\/td>\n<td>EventHandle<\/td>\n<td>&nbsp;<\/td>\n<td>current \u6539\u53d8\u65f6\u4f1a\u89e6\u53d1 change \u4e8b\u4ef6\uff0cevent.detail = {current: current}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f\uff1a\u5176\u4e2d\u53ea\u53ef\u653e\u7f6e \u7ec4\u4ef6\uff0c\u5176\u4ed6\u8282\u70b9\u4f1a\u88ab\u81ea\u52a8\u5220\u9664\u3002<\/p>\n<h4>swiper-item<\/h4>\n<p>\u4ec5\u53ef\u653e\u7f6e\u5728 \u7ec4\u4ef6\u4e2d\uff0c\u5bbd\u9ad8\u81ea\u52a8\u8bbe\u7f6e\u4e3a100%\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-9.gif\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe9\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe9\" \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-10.gif\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe10\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe10\" \/><\/p>\n<pre>&nbsp;1&nbsp;\u793a\u4f8b\u4ee3\u7801\uff1a&nbsp;2&nbsp;&nbsp;3&nbsp;&lt;swiper&gt;&nbsp;5&nbsp;&nbsp;&nbsp;&lt;block&gt;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;swiper-item&gt;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;image&gt;&lt;\/image&gt;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/swiper-item&gt;&nbsp;9&nbsp;&nbsp;&nbsp;&lt;\/block&gt;10&nbsp;&lt;\/swiper&gt;11&nbsp;&lt;button&gt;&nbsp;indicator-dots&nbsp;&lt;\/button&gt;12&nbsp;&lt;button&gt;&nbsp;autoplay&nbsp;&lt;\/button&gt;13&nbsp;&lt;slider&gt;&lt;\/slider&gt;&nbsp;interval14&nbsp;&lt;slider&gt;&lt;\/slider&gt;&nbsp;duration15&nbsp;Page({16&nbsp;&nbsp;&nbsp;data:&nbsp;{17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;imgUrls:&nbsp;[18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'http:\/\/img02.tooopen.com\/images\/20150928\/tooopen_sy_143912755726.jpg',19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'http:\/\/img06.tooopen.com\/images\/20160818\/tooopen_sy_175866434296.jpg',20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'http:\/\/img06.tooopen.com\/images\/20160818\/tooopen_sy_175833047715.jpg'21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indicatorDots:&nbsp;false,23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;autoplay:&nbsp;false,24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interval:&nbsp;5000,25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;100026&nbsp;&nbsp;&nbsp;},27&nbsp;&nbsp;&nbsp;changeIndicatorDots:&nbsp;function(e)&nbsp;{28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indicatorDots:&nbsp;!this.data.indicatorDots30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})31&nbsp;&nbsp;&nbsp;},32&nbsp;&nbsp;&nbsp;changeAutoplay:&nbsp;function(e)&nbsp;{33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({34&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;autoplay:&nbsp;!this.data.autoplay35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})36&nbsp;&nbsp;&nbsp;},37&nbsp;&nbsp;&nbsp;intervalChange:&nbsp;function(e)&nbsp;{38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({39&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interval:&nbsp;e.detail.value40&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})41&nbsp;&nbsp;&nbsp;},42&nbsp;&nbsp;&nbsp;durationChange:&nbsp;function(e)&nbsp;{43&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;e.detail.value45&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})46&nbsp;&nbsp;&nbsp;}47&nbsp;})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><span>View Code<\/span><\/p>\n<p>\u770b\u4e86\u4e0a\u9762\u7684\u5b98\u65b9\u6587\u6863\uff0c\u5c31\u53ef\u4ee5\u6e05\u695a\u7684\u77e5\u9053\uff0c\u8fd9\u4e2a\u5c31\u662f\u6211\u4eec\u7c7b\u4f3c\u5728\u5199html\u91cc\u7528\u5230\u7684banner\u6ed1\u52a8\u63d2\u4ef6\u4e00\u6837\uff0c\u62ff\u8fc7\u6765\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u591a\u4e48\u7684\u65b9\u4fbf\u3002<\/p>\n<p>\u6211\u4eec\u7684\u9879\u76ee\u4e2d\u540c\u6837\u7528\u53c2\u6570\u7ed1\u5b9a\u7684\u65b9\u5f0f\uff0c\u8f93\u51fa\u7684\u76f8\u5173\u53c2\u6570<\/p>\n<p>\u53c2\u6570\u5b9a\u4e49\u5728index.js pages({&#8230;})\u65b9\u6cd5\u4e2d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/4c68a47df4a645b9fe1f7c4beac2255d-11.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe11\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe11\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;\u4e3a\u4ec0\u4e48\u8981\u7ed1\u5b9a\u53c2\u6570\uff1f\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u5199\u5165\u53c2\u6570\u5462\uff1f\u597d\u5904\u592a\u591a\uff0c\u56fe\u7247\u6211\u4eec\u4e0d\u53ef\u80fd\u5199\u6b7b\uff0c\u4ece\u670d\u52a1\u5668\u8bf7\u6c42\u56fe\u7247\uff0c\u540c\u65f6\u53ef\u4ee5\u65b9\u4fbf\u7684\u63a7\u5236\u6211\u4eec\u7684\u76f8\u5173\u53c2\u6570\u6765\u6539\u53d8swiper\u7684\u884c\u4e3a\u7b49\u3002<\/p>\n<p>\u81f3\u4e8e\u53c2\u6570\u7ed1\u5b9a\uff0c\u5b98\u7f51\u8bf4\u7684\u4e5f\u5f88\u6e05\u695a\uff0c\u8fd9\u91cc\u4e0d\u5728\u89e3\u91ca\u3002<\/p>\n<p>2\uff09\u57ce\u5e02\u9009\u62e9\u53ca\u5207\u6362<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/4c68a47df4a645b9fe1f7c4beac2255d-12.gif\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe12\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe12\" \/><\/p>\n<p>\u8fd9\u5757\u770b\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u5b9e\u9645\u4e0a\u5f88\u9ebb\u70e6\uff0c\u5982\u679c\u5bf9\u52a8\u753b\u4e0d\u719f\u6089\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u4f1a\u82e6\u607c\u4e00\u756a\u7684\u3002<\/p>\n<p>\u4e0a\u9762\u7684\u52a8\u753b\u5f88\u6d41\u7545\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u6293\u5c4f\u5de5\u5177\u4e0d\u592a\u597d\uff0c\u8fd9\u70b9\u5927\u53ef\u4e0d\u7528\u5173\u5fc3\u3002<\/p>\n<p>\u6211\u4eec\u70b9\u51fb\u4e2d\u95f4\u7684\u201c\u4ea4\u6362\u5706\u201d\u7684\u65f6\u5019\uff0c\u201d\u51fa\u53d1\u57ce\u5e02\u201c\u4e0e\u201d\u5230\u8fbe\u57ce\u5e02\u201c\u76f8\u4e92\u4ea4\u6362\uff0c\u4ed6\u4eec\u4e0d\u662f\u7acb\u5373\u53d8\u5316\uff0c\u800c\u662f\u4e2d\u95f4\u6709\u4e00\u4e2a&#8221;\u4f4d\u79fb&#8221;\u6548\u679c\uff0c\u540c\u65f6\uff0c\u90a3\u4e2a\u201c\u4ea4\u6362\u7684\u5706\u201d\u4e5f\u8981\u65cb\u8f6c180\u5ea6\u3002<\/p>\n<p>\u8fd9\u6837\u4f53\u9a8c\u611f\u7acb\u9a6c&#8221;\u9ad8\u4e0a\u5927&#8221;\u3002\u5475\u5475\uff0c\u4e0d\u662f\u5417\uff1f\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u7684\u6765\u5b9e\u73b0\u5b83\u3002<\/p>\n<p>\u6211\u4eec\u9996\u5148\u6765\u6e29\u4e60\u4e0b\uff0c\u5b98\u7f51\u52a8\u753b\u76f8\u5173\u7684\u6587\u6863\u8bf4\u660e<\/p>\n<h3>wx.createAnimation(OBJECT)<\/h3>\n<p>\u521b\u5efa\u4e00\u4e2a\u52a8\u753b\u5b9e\u4f8banimation\u3002\u8c03\u7528\u5b9e\u4f8b\u7684\u65b9\u6cd5\u6765\u63cf\u8ff0\u52a8\u753b\u3002\u6700\u540e\u901a\u8fc7\u52a8\u753b\u5b9e\u4f8b\u7684export\u65b9\u6cd5\u5bfc\u51fa\u52a8\u753b\u6570\u636e\u4f20\u9012\u7ed9\u7ec4\u4ef6\u7684animation\u5c5e\u6027\u3002<\/p>\n<p>\u6ce8\u610f:&nbsp;export&nbsp;\u65b9\u6cd5\u6bcf\u6b21\u8c03\u7528\u540e\u4f1a\u6e05\u6389\u4e4b\u524d\u7684\u52a8\u753b\u64cd\u4f5c<\/p>\n<p>OBJECT\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>duration<\/td>\n<td>Integer<\/td>\n<td>\u5426<\/td>\n<td>\u52a8\u753b\u6301\u7eed\u65f6\u95f4\uff0c\u5355\u4f4dms\uff0c\u9ed8\u8ba4\u503c 400<\/td>\n<\/tr>\n<tr>\n<td>timingFunction<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>\u5b9a\u4e49\u52a8\u753b\u7684\u6548\u679c\uff0c\u9ed8\u8ba4\u503c&#8221;linear&#8221;\uff0c\u6709\u6548\u503c\uff1a&#8221;linear&#8221;,&#8221;ease&#8221;,&#8221;ease-in&#8221;,&#8221;ease-in-out&#8221;,&#8221;ease-out&#8221;,&#8221;step-start&#8221;,&#8221;step-end&#8221;<\/td>\n<\/tr>\n<tr>\n<td>delay<\/td>\n<td>Integer<\/td>\n<td>\u5426<\/td>\n<td>\u52a8\u753b\u5ef6\u8fdf\u65f6\u95f4\uff0c\u5355\u4f4d ms\uff0c\u9ed8\u8ba4\u503c 0<\/td>\n<\/tr>\n<tr>\n<td>transformOrigin<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>\u8bbe\u7f6etransform-origin\uff0c\u9ed8\u8ba4\u4e3a&#8221;50% 50% 0&#8243;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre>\r\nvar&nbsp;animation&nbsp;=&nbsp;wx.createAnimation({\r\n&nbsp;&nbsp;transformOrigin:&nbsp;\"50%&nbsp;50%\",\r\n&nbsp;&nbsp;duration:&nbsp;1000,\r\n&nbsp;&nbsp;timingFunction:&nbsp;\"ease\",\r\n&nbsp;&nbsp;delay:&nbsp;0})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<h3>animation<\/h3>\n<p>\u52a8\u753b\u5b9e\u4f8b\u53ef\u4ee5\u8c03\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6765\u63cf\u8ff0\u52a8\u753b\uff0c\u8c03\u7528\u7ed3\u675f\u540e\u4f1a\u8fd4\u56de\u81ea\u8eab\uff0c\u652f\u6301\u94fe\u5f0f\u8c03\u7528\u7684\u5199\u6cd5\u3002<\/p>\n<p>\u6837\u5f0f\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>opacity<\/td>\n<td>value<\/td>\n<td>\u900f\u660e\u5ea6\uff0c\u53c2\u6570\u8303\u56f4 0~1<\/td>\n<\/tr>\n<tr>\n<td>backgroundColor<\/td>\n<td>color<\/td>\n<td>\u989c\u8272\u503c<\/td>\n<\/tr>\n<tr>\n<td>width<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<tr>\n<td>height<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<tr>\n<td>top<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<tr>\n<td>left<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<tr>\n<td>bottom<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<tr>\n<td>right<\/td>\n<td>length<\/td>\n<td>\u957f\u5ea6\u503c\uff0c\u5982\u679c\u4f20\u5165 Number \u5219\u9ed8\u8ba4\u4f7f\u7528 px\uff0c\u53ef\u4f20\u5165\u5176\u4ed6\u81ea\u5b9a\u4e49\u5355\u4f4d\u7684\u957f\u5ea6\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u65cb\u8f6c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>rotate<\/td>\n<td>deg<\/td>\n<td>deg\u7684\u8303\u56f4-180~180\uff0c\u4ece\u539f\u70b9\u987a\u65f6\u9488\u65cb\u8f6c\u4e00\u4e2adeg\u89d2\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>rotateX<\/td>\n<td>deg<\/td>\n<td>deg\u7684\u8303\u56f4-180~180\uff0c\u5728X\u8f74\u65cb\u8f6c\u4e00\u4e2adeg\u89d2\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>rotateY<\/td>\n<td>deg<\/td>\n<td>deg\u7684\u8303\u56f4-180~180\uff0c\u5728Y\u8f74\u65cb\u8f6c\u4e00\u4e2adeg\u89d2\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>rotateZ<\/td>\n<td>deg<\/td>\n<td>deg\u7684\u8303\u56f4-180~180\uff0c\u5728Z\u8f74\u65cb\u8f6c\u4e00\u4e2adeg\u89d2\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>rotate3d<\/td>\n<td>(x,y,z,deg)<\/td>\n<td>\u540ctransform-function rotate3d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7f29\u653e\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>scale<\/td>\n<td>sx,[sy]<\/td>\n<td>\u4e00\u4e2a\u53c2\u6570\u65f6\uff0c\u8868\u793a\u5728X\u8f74\u3001Y\u8f74\u540c\u65f6\u7f29\u653esx\u500d\u6570\uff1b\u4e24\u4e2a\u53c2\u6570\u65f6\u8868\u793a\u5728X\u8f74\u7f29\u653esx\u500d\u6570\uff0c\u5728Y\u8f74\u7f29\u653esy\u500d\u6570<\/td>\n<\/tr>\n<tr>\n<td>scaleX<\/td>\n<td>sx<\/td>\n<td>\u5728X\u8f74\u7f29\u653esx\u500d\u6570<\/td>\n<\/tr>\n<tr>\n<td>scaleY<\/td>\n<td>sy<\/td>\n<td>\u5728Y\u8f74\u7f29\u653esy\u500d\u6570<\/td>\n<\/tr>\n<tr>\n<td>scaleZ<\/td>\n<td>sz<\/td>\n<td>\u5728Z\u8f74\u7f29\u653esy\u500d\u6570<\/td>\n<\/tr>\n<tr>\n<td>scale3d<\/td>\n<td>(sx,sy,sz)<\/td>\n<td>\u5728X\u8f74\u7f29\u653esx\u500d\u6570\uff0c\u5728Y\u8f74\u7f29\u653esy\u500d\u6570\uff0c\u5728Z\u8f74\u7f29\u653esz\u500d\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u504f\u79fb\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>translate<\/td>\n<td>tx,[ty]<\/td>\n<td>\u4e00\u4e2a\u53c2\u6570\u65f6\uff0c\u8868\u793a\u5728X\u8f74\u504f\u79fbtx\uff0c\u5355\u4f4dpx\uff1b\u4e24\u4e2a\u53c2\u6570\u65f6\uff0c\u8868\u793a\u5728X\u8f74\u504f\u79fbtx\uff0c\u5728Y\u8f74\u504f\u79fbty\uff0c\u5355\u4f4dpx\u3002<\/td>\n<\/tr>\n<tr>\n<td>translateX<\/td>\n<td>tx<\/td>\n<td>\u5728X\u8f74\u504f\u79fbtx\uff0c\u5355\u4f4dpx<\/td>\n<\/tr>\n<tr>\n<td>translateY<\/td>\n<td>ty<\/td>\n<td>\u5728Y\u8f74\u504f\u79fbtx\uff0c\u5355\u4f4dpx<\/td>\n<\/tr>\n<tr>\n<td>translateZ<\/td>\n<td>tz<\/td>\n<td>\u5728Z\u8f74\u504f\u79fbtx\uff0c\u5355\u4f4dpx<\/td>\n<\/tr>\n<tr>\n<td>translate3d<\/td>\n<td>(tx,ty,tz)<\/td>\n<td>\u5728X\u8f74\u504f\u79fbtx\uff0c\u5728Y\u8f74\u504f\u79fbty\uff0c\u5728Z\u8f74\u504f\u79fbtz\uff0c\u5355\u4f4dpx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u503e\u659c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>skew<\/td>\n<td>ax,[ay]<\/td>\n<td>\u53c2\u6570\u8303\u56f4-180~180\uff1b\u4e00\u4e2a\u53c2\u6570\u65f6\uff0cY\u8f74\u5750\u6807\u4e0d\u53d8\uff0cX\u8f74\u5750\u6807\u5ef6\u987a\u65f6\u9488\u503e\u659cax\u5ea6\uff1b\u4e24\u4e2a\u53c2\u6570\u65f6\uff0c\u5206\u522b\u5728X\u8f74\u503e\u659cax\u5ea6\uff0c\u5728Y\u8f74\u503e\u659cay\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>skewX<\/td>\n<td>ax<\/td>\n<td>\u53c2\u6570\u8303\u56f4-180~180\uff1bY\u8f74\u5750\u6807\u4e0d\u53d8\uff0cX\u8f74\u5750\u6807\u5ef6\u987a\u65f6\u9488\u503e\u659cax\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>skewY<\/td>\n<td>ay<\/td>\n<td>\u53c2\u6570\u8303\u56f4-180~180\uff1bX\u8f74\u5750\u6807\u4e0d\u53d8\uff0cY\u8f74\u5750\u6807\u5ef6\u987a\u65f6\u9488\u503e\u659cay\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u77e9\u9635\u53d8\u5f62\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u53c2\u6570<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>matrix<\/td>\n<td>(a,b,c,d,tx,ty)<\/td>\n<td>\u540ctransform-function matrix<\/td>\n<\/tr>\n<tr>\n<td>matrix3d<\/td>\n<td>&nbsp;<\/td>\n<td>\u540ctransform-function matrix3d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u52a8\u753b\u961f\u5217<\/h3>\n<p>\u8c03\u7528\u52a8\u753b\u64cd\u4f5c\u65b9\u6cd5\u540e\u8981\u8c03\u7528&nbsp;step()&nbsp;\u6765\u8868\u793a\u4e00\u7ec4\u52a8\u753b\u5b8c\u6210\uff0c\u53ef\u4ee5\u5728\u4e00\u7ec4\u52a8\u753b\u4e2d\u8c03\u7528\u4efb\u610f\u591a\u4e2a\u52a8\u753b\u65b9\u6cd5\uff0c\u4e00\u7ec4\u52a8\u753b\u4e2d\u7684\u6240\u6709\u52a8\u753b\u4f1a\u540c\u65f6\u5f00\u59cb\uff0c\u4e00\u7ec4\u52a8\u753b\u5b8c\u6210\u540e\u624d\u4f1a\u8fdb\u884c\u4e0b\u4e00\u7ec4\u52a8\u753b\u3002step \u53ef\u4ee5\u4f20\u5165\u4e00\u4e2a\u8ddf&nbsp;wx.createAnimation()&nbsp;\u4e00\u6837\u7684\u914d\u7f6e\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u5f53\u524d\u7ec4\u52a8\u753b\u7684\u914d\u7f6e\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-9.gif\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe9\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe9\" \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/78eb9ccfa9608cf550c439761384b04b-10.gif\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe10\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe10\" \/><\/p>\n<pre>&nbsp;1&nbsp;&lt;view&gt;&lt;\/view&gt;&nbsp;2&nbsp;Page({&nbsp;3&nbsp;&nbsp;&nbsp;data:&nbsp;{&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;{}&nbsp;5&nbsp;&nbsp;&nbsp;},&nbsp;6&nbsp;&nbsp;&nbsp;onShow:&nbsp;function(){&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;animation&nbsp;=&nbsp;wx.createAnimation({&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;1000,&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timingFunction:&nbsp;'ease',10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})11&nbsp;12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation&nbsp;=&nbsp;animation13&nbsp;14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation.scale(2,2).rotate(45).step()15&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:animation.export()18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})19&nbsp;20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function()&nbsp;{21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation.translate(30).step()22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:animation.export()24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}.bind(this),&nbsp;1000)26&nbsp;&nbsp;&nbsp;},27&nbsp;&nbsp;&nbsp;rotateAndScale:&nbsp;function&nbsp;()&nbsp;{28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u65cb\u8f6c\u540c\u65f6\u653e\u592729&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation.rotate(45).scale(2,&nbsp;2).step()30&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;this.animation.export()32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})33&nbsp;&nbsp;&nbsp;},34&nbsp;&nbsp;&nbsp;rotateThenScale:&nbsp;function&nbsp;()&nbsp;{35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5148\u65cb\u8f6c\u540e\u653e\u592736&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation.rotate(45).step()37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation.scale(2,&nbsp;2).step()38&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({39&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;this.animation.export()40&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})41&nbsp;&nbsp;&nbsp;},42&nbsp;&nbsp;&nbsp;rotateAndScaleThenTranslate:&nbsp;function&nbsp;()&nbsp;{43&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5148\u65cb\u8f6c\u540c\u65f6\u653e\u5927\uff0c\u7136\u540e\u5e73\u79fb44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation.rotate(45).scale(2,&nbsp;2).step()45&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.animation.translate(100,&nbsp;100).step({&nbsp;duration:&nbsp;1000&nbsp;})46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({47&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;this.animation.export()48&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})49&nbsp;&nbsp;&nbsp;}50&nbsp;})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><span>View Code<\/span><\/p>\n<p><strong>\u8fd9\u91cc\u6211\u5e76\u4e0d\u60f3\u4e00\u4e2a\u4e00\u4e2a\u7684\u4ecb\u7ecd\u5b98\u65b9\u7684\u52a8\u753b\u8bf4\u660e\u6587\u6863\uff0c\u56e0\u4e3a\u5199\u7684\u5f88\u6e05\u695a\u4e86\uff0c\u800c\u662f\u6211\u60f3\u8bf4\u4e0b\u4e00\u4e9b\u5173\u4e8e\u52a8\u753b\u7684\u673a\u5236<\/strong>\u3002<\/p>\n<p>\u4e0d\u7ba1\u662f\u4f4d\u79fb\uff0c\u7f29\u653e\uff0c\u65cb\u8f6c\uff0c\u53ef\u80fd\u90fd\u4f1a\u6d89\u53ca\u5230\u4e09\u4e2a\u8f74\uff0c\u90a3\u5c31\u662fx,y,z,\u8f74\uff0c\u8fd9\u4e09\u4e2a\u8f74\u5927\u81f4\u8fd9\u6837\u7684\u5982\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/9124ab01324af49208290d430468ae5f-15.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe13\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe13\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>x\u8f74\u662f\u6c34\u5e73\u7684\uff0cy\u8f74\u5728\u5782\u76f4\u65b9\u5411\u4e0a\uff0c\u800cz\u8f74\uff0c\u662f&#8221;<span style=\"color: #ff0000\">\u6307\u5411\u6211\u4eec\u7684\u65b9\u5411<\/span>&#8220;\u7684\u4e00\u4e2a\u8f74<span style=\"color: #000000\">,\u8fd9\u70b9\u5fc5\u987b\u6e05\u695a\uff0c\u4e0d\u7136\u52a8\u753b\u7684\u5f88\u591a\u4e1c\u897f\uff0c\u4f60\u5c31\u6ca1\u529e\u6cd5\u7406\u89e3\u4e86\u3002<\/span><\/p>\n<p><span style=\"color: #000000\">\u597d\u4e86\uff0c\u6211\u4eec\u518d\u6765\u56de\u8fc7\u5934\u6765\u770b\u770b\u5b98\u7f51\u7684\u51e0\u4e2a\u52a8\u753b\u65b9\u6cd5\u3002<\/span><\/p>\n<p><strong><span style=\"color: #000000\">\u65cb\u8f6c\uff1a1.rotate(deg)\uff0c2.rotateX(deg)\uff0c3.rotateY(deg)\uff0c4.rotateZ(deg)\uff0c5.rotate3d(x,y,z,deg)<\/span><\/strong><\/p>\n<p><span style=\"color: #000000\">1.rotate\u8868\u793a\u4ee5\u539f\u70b9\u5728\u987a\u65f6\u9488\u65cb\u8f6c\u4e00\u4e2a\u5ea6\u6570deg\u8303\u56f4\u5728-180~180<\/span><\/p>\n<p><span style=\"color: #000000\">\u5047\u5982\u6211\u4eec\u8981\u8ba9\u4e00\u4e2a\u56fe\u7247\uff0c\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6\uff0c\u4ee5\u539f\u70b9\u4e3a\u4e2d\u5fc3<\/span><\/p>\n<p><span style=\"color: #000000\">\u53ef\u80fd\u521a\u5f00\u59cb\u56fe\u7247\u8fd9\u6837\u6392\u5217\u7684\u5982\u4e0b\u56fe<\/span><\/p>\n<p><span style=\"color: #000000\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/9124ab01324af49208290d430468ae5f-16.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe14\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe14\" \/><\/span><\/p>\n<p>&nbsp;\u65cb\u8f6c\u540e\uff0c\u7531\u56feA\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6\u81f3\u56feB\uff0c\u5b83\u662f\u5728\u4e00\u4e2aX\u4e0eY\u7684\u5e73\u9762\u4e0a\u4e0eZ\u8f74\u6210\u5782\u76f490\u5ea6\u6765\u987a\u65f6\u9488\u65cb\u8f6c\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/9124ab01324af49208290d430468ae5f-17.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe15\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe15\" \/><\/p>\n<p>\u7531\u4e0a\u8ff0\u53ef\u4ee5\u770b\u51fa\uff0c\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u5750\u6807\u662f(x:0,y:0,z:0);\u800c\u6211\u4eec\u8981\u65cb\u8f6c\u4e00\u4e2a\u56fe\u7247\uff0c\u4e00\u822c\u4e0d\u5e0c\u671b\u5728\u5de6\u4e0a\u89d2\u505a\u4e3a\u65cb\u8f6c\u70b9\uff0c\u6700\u591a\u7684\u60c5\u51b5\u4e0b\uff0c\u5c31\u662f\u4ee5\u56fe\u7247\u7684\u4e2d\u5fc3\u70b9\u4e3a\u65cb\u8f6c\u70b9(x:50%,y:50%,z:0) z\u5750\u6807\u662f\u6307\u5411\u6211\u4eec\u7684\u5750\u6807\uff0c\u5c31\u50cfcss\u91cc\u7684z-index\u4e00\u6837\uff0c\u6211\u4eec\u5e94\u8be5\u628a\u5b83\u8bbe\u4e3a0\uff0c\u5373\u4f7f\u4f60\u8bbe\u4e3a\u4efb\u4f55\u4e00\u4e2a\u6570\u5b57\uff0c\u4f60\u7684\u89c6\u89d2\u5dee\u4e5f\u611f\u4e0d\u5230\u4efb\u4f55\u4e0d\u540c\uff0c\u56e0\u4e3a\uff0c\u56fe\u7247\u7684z\u8f74\u662f\u5782\u76f4\u6211\u4eec\u89c6\u7ebf\u7684\uff0c\u6545\u4e00\u822c\u8bbe\u7f6e\u4e3a0\u3002<\/p>\n<p>\u5c31\u50cf\u4e0b\u9762\u5982\u56fe\u6240\u793a\uff0c\u53ef\u80fd\u662f\u6211\u4eec\u5e0c\u671b\u7684\u65cb\u8f6c\u6548\u679c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/9124ab01324af49208290d430468ae5f-18.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe16\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe16\" \/><\/p>\n<p>&nbsp;\u4e0d\u597d\u610f\u601d\u5440\uff0c\u7528QQ\u7ed8\u56fe\u5de5\u5177\u7ed8\u5236\uff0c\u53ef\u80fd\u6548\u679c\u4e0d\u592a\u597d\uff0c\u4f46\u662f\u5927\u81f4\u7684\u8868\u8fbe\u4e86\u8fd9\u79cd\u793a\u610f\u56fe\uff0c<\/p>\n<p>\u4e0a\u56fe\u63cf\u8ff0\u4e86\uff0c\u7531\u56fe\u7247A\u7531\u4e2d\u5fc3\u70b9\uff0c\u65cb\u8f6c90\u5ea6\u540e\u7684\u6548\u679c\uff0c\u90a3\u4e48\u5982\u4f55\u521d\u59cb\u5316\uff0c\u8ba9\u56fe\u7247\u7684\u539f\u70b9\u7531(x:0,y:0,z:0)\u66f4\u6362\u4e3a(x:50%,y:50%,z:0)\u5462\uff1f\u56de\u8fc7\u5934\u6765\u770b\u4e0b\u5b98\u7f51\u6559\u7a0b\u7684wx.createAnimation(OBJECT)\u65b9\u6cd5<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/9124ab01324af49208290d430468ae5f-19.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe17\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe17\" \/><\/p>\n<p>\u5176\u4e2d\u5c5e\u6027transformOrigin \u5df2\u8bf4\u660e\uff0c\u9ed8\u8ba4\u4e3a\u56fe\u7247\u7684\u4e2d\u5fc3\u70b9\uff0c\u53ef\u80fd\u662f\u4f5c\u8005\u7684\u521d\u8877\u4e5f\u8fd9\u4e48\u8ba4\u4e3a\u7684\uff0c\u65cb\u8f6c\u5e94\u8be5\u4ee5\u201d\u5143\u7d20\u201c\u7684\u4e2d\u5fc3\u70b9\u6765\u64cd\u4f5c\u5e94\u7528\u6bd4\u8f83\u591a\u70b9\uff0c\u8fd9\u662f\u5408\u60c5\u53ef\u7406\u7684<\/p>\n<p>\u81f3\u6b64\uff0c\u6211\u4eec\u65cb\u8f6c\u4e00\u4e2a\u56fe\u7247\u5f97\u4e86\u5230\u5927\u81f4\u7684\u601d\u8def\u3002\u5176\u5b83\u7684\u4ee5X\u8f74\uff0cY\u8f74\uff0cZ\u8f74\u65cb\u8f6c\u4e0e\u4e9b\u7c7b\u4f3c\uff0c\u4e0d\u5728\u7d2f\u8ff0\u3002<\/p>\n<h3>animation\u6837\u5f0f\uff1a<\/h3>\n<p>&nbsp;<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/1b3ec3770d04e6618f6297bf79b9d487-20.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe18\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe18\" \/><\/p>\n<p>\u5982\u4f55\u8ba9\u4e00\u4e2a\u5143\u7d20\u4ece\u4e00\u4e2a\u4f4d\u7f6e\u4eceA\u70b9\u79fb\u5230B\u70b9\u5462\uff1f\u53ef\u80fd\u901a\u8fc7\u4e0a\u8ff0\u7684\u6837\u5f0f\u5c5e\u6027\u5728\u6539\u53d8\u201d\u5143\u7d20\u201c\u7684top bottom left right \u8fbe\u5230\u6548\u679c\uff0c<\/p>\n<p>\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5176\u5b83\u52a8\u753b\u65b9\u6cd5\u6765\u6539\u53d8\uff0c\u5982\u504f\u79fb&nbsp;translate(x,y,z)\u3002<\/p>\n<p>\u901a\u8fc7top bottom left right \u6837\u5f0f\u5c5e\u6027\u6765\u5b9e\u73b0\u52a8\u753b\uff0c\u524d\u63d0\u662f\uff0c\u8fd9\u4e2a\u201d\u5143\u7d20\u201c\u4e00\u5b9a\u662f\u76f8\u5bf9\u5b9a\u4f4d\u6216\u8005\u7edd\u5bf9\u5b9a\u4f4d\u7684\uff0c\u4e0d\u7136\u662f\u4e0d\u51fa\u6548\u679c\u7684\uff0c\u8fd9\u548c\u5199css\u91cc\u7684position:absolute\u76f8\u540c\u7684\u539f\u7406\u3002<\/p>\n<p>\u5982\u679c\u8981\u8ba9\u4e00\u4e2a\u5143\u7d20\u6216\u56fe\u7247\u4eceA\u70b9\u5e73\u79fb\u81f3B\u70b9\uff0c\u5c31\u50cf\u4e0b\u56fe\u6240\u4ee5\u793a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/1b3ec3770d04e6618f6297bf79b9d487-21.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe19\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe19\" \/><\/p>\n<p>\u5047\u5982\u521d\u59cbA\u5750\u6807\u4e3a(x:10px,y:0px,z:0px)\u79fb\u81f3B\u70b9\u5750\u6807(x:120px,y:0px,z:0px),\u90a3\u6837\u6211\u4eec\u53ea\u9700\u6539\u53d8\u5143\u7d20\u7684left\u6216\u8005right\u5373\u53ef\uff0c<\/p>\n<p>\u540c\u7406\uff0c\u53ef\u4ee5\u7528bottom,top\u6765\u6539\u53d8y\u5750\u6807\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u5230\u6b64\u4e3a\u6b62\uff0c\u6211\u4eec\u9879\u76ee\u7684\u6240\u9700\u52a8\u753b\u53ef\u80fd\u8981\u7528\u5230\u7684\u6548\u679c\u90fd\u57fa\u672c\u4e0a\u6709\u4e86\u601d\u8def\u3002\u90a3\u4e48\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u5b9e\u73b0\u5b83\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5728\u201d\u51fa\u53d1\u57ce\u5e02&#8217;\u4e0e&#8221;\u5230\u8fbe\u57ce\u5e02&#8221;\u4ee5\u53ca&#8221;\u65cb\u8f6c\u56fe\u7247&#8221;\u5b9a\u4e49\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/1b3ec3770d04e6618f6297bf79b9d487-22.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe20\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe20\" \/><\/p>\n<p>&nbsp;\u5bf9\u5e94\u7684wxml\u754c\u9762\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/17bc4812699d4db6d5dab0a362aab0de-23.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe21\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe21\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u4e3a\u6ce8\u610f\u5230\u5728index.wxss\uff08\u5982\u4e0b\u56fe\uff09\u91cc\u7ed9\u4e86\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u76ee\u7684\u5c31\u662f\u60f3\u7528left\u6216right\u6765\u52a8\u753b\u4ea4\u6362\u57ce\u5e02<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/17bc4812699d4db6d5dab0a362aab0de-24.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe22\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe22\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u91cc\u6ce8\u610f\u4e00\u70b9\uff0canimationsSourceCity\u521d\u59cb\u5316\u7684\u65f6\u5019\uff0ccss\u91cc\u7528\u4e86left, \u52a8\u753b\u65f6\uff0c\u5fc5\u987b\u7528\u5b83\u7684left\u6765&#8221;\u4f4d\u79fb&#8221;\uff0c\u800c\u4e0d\u662fright<\/p>\n<p>\u4e0d\u7136\u4f1a\u770b\u4e0d\u5230\u6548\u679c\uff0c\u8fd9\u70b9\uff0c\u5728\u73a9css3\u52a8\u753b\u7684\u65f6\u5019\uff0c\u5c31\u9047\u5230\u8fc7\u3002\u540c\u7406\uff0c\u4e0b\u9762\u7684animationsDestCity\u53ea\u80fd\u7528right\u6765&#8221;\u4f4d\u79fb&#8221;\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u6709\u7684\u670b\u53cb\u4f1a\u60f3\u5728\u521d\u59cb\u5316\u7684\u65f6\u5019\u7528left\u53ef\u52a8\u753b\u7684\u65f6\u5019\u60f3right\u7684\u5462\uff1f\u53ef\u80fd\u8003\u8651\u5230\u5143\u7d20\u7684\u51c6\u786e\u7684\u5b9a\u4f4d\u539f\u56e0\uff0c\u6bd5\u7adf\uff0c<strong>\u7cbe\u786e\u7684\u5b9a\u4f4d\u4e0d\u662f\u4e00\u4ef6\u5f88\u5bb9\u6613\u7684\u4e8b\u60c5\u3002 \u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bf4\u5462\uff1f\u56e0\u4e3a\u8003\u8651\u5230app\u5728\u5176\u5b83\u5c4f\u4e0a\u663e\u793a\u3002<\/strong><\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/17bc4812699d4db6d5dab0a362aab0de-25.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe23\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe23\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;\u4ece\u4e0a\u9762\u7684\u622a\u56fe\u53ef\u4ee5\u770b\u5230\uff0c\u73b0\u5b9e\u4e2d\u7684\u95ee\u9898\uff0c\u4e2d\u95f4\u8fd9\u5757\uff0c\u5bbd\u4e0e\u9ad8\u662f\u7528\u4e86px\uff0c\u5c31\u662f\u8bf4\uff0c\u6211\u4eec\u4e0d\u5e0c\u671b\u4e2d\u95f4\u8fd9\u4e2a\u65cb\u8f6c\u6309\u626d\u81ea\u9002\u5e94\u4e0d\u540c\u7684\u624b\u673a\u5c4f\uff0c\u800c\u5e0c\u671b\u4ed6\u80fd\u591f\u4fdd\u6301\u4e0d\u53d8\u3002\u8fd9\u4e2a\u65f6\u5019\uff0c\u5982\u679c\u6211\u4eec\u4ec5\u4ec5\u7528left\u6765\u5e73\u79fb&#8221;\u51fa\u53d1\u57ce\u5e02&#8221;\u81f3&#8221;\u5230\u8fbe\u57ce\u5e02&#8221;\u7684\u5750\u6807\u5904\uff0c\u53ef\u80fd\u4e0d\u7ba1\u4f60\u7528px\u8fd8\u662frpx\u6216\u5176\u5b83\u5355\u4f4d\uff0c\u90fd\u8fbe\u4e0d\u5230\u7cbe\u786e\u5b9a\u4f4d\u4e86\uff08\u4e3a\u4ec0\u4e48\uff1f\uff09\u3002<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\uff0c\u6362\u4e2a\u89d2\u5ea6\u6765\u601d\u8003\u4e0b\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u8ba9\u5b83\u7cbe\u786e\u7684\u4f4d\u79fb\u81f3\u201c\u5230\u8fbe\u57ce\u5e02\u201d\uff0c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bf4\u5462\uff1f\u5728\u201d\u51fa\u53d1\u57ce\u5e02\u201c\u79fb\u81f3\u201d\u5230\u8fbe\u57ce\u5e02\u201c\u524d\u7684\u4e00\u70b9\u5f88\u77ed\u7684\u65f6\u95f4\u5185\uff0c\u6211\u4eec\u8ba9\u5b83\u57280s\u4ea4\u6362\u57ce\u5e02\uff08\u4e5f\u5c31\u662f\u590d\u4f4d\u4f46\u6587\u672c\u5185\u5bb9\u5df2\u4ea4\u6362\uff09\uff0c\u56e0\u4e3a0s\u4e92\u6362\u57ce\u5e02\u6587\u672c\u5185\u5bb9\uff0c\u4f30\u8ba1\u6ca1\u6709\u4efb\u4f55\u4eba\u53ef\u4ee5\u53d1\u89c9\u5230\u7684\u3002\u8fd9\u5c31\u9700\u8981\u4e00\u4e2a\u201c\u6070\u5f53\u7684\u65f6\u95f4\u201d\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u6211\u4eec\u6765\u770b\u770b\u4ee3\u7801\uff1a<\/p>\n<p>\u5b9a\u4e49\u4e09\u4e2a\u52a8\u753b\uff1a<\/p>\n<pre>&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation1&nbsp;=&nbsp;wx.createAnimation({&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;300,&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timingFunction:&nbsp;'linear',&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;transformOrigin:&nbsp;\"50%,50%\"&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})&nbsp;6&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;animation1.export()&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})10&nbsp;11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation2&nbsp;=&nbsp;wx.createAnimation({12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;300,13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timingFunction:&nbsp;'linear'14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})15&nbsp;16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationSourceCity:&nbsp;animation2.export()18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})19&nbsp;20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation3&nbsp;=&nbsp;wx.createAnimation({21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duration:&nbsp;300,22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timingFunction:&nbsp;'linear'23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})24&nbsp;25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({26&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationDestCity:&nbsp;animation3.export()27&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>animation1\u662f\u65cb\u8f6c\u56fe\u7247\u7684\u52a8\u753b\u5b9a\u4e49(\u521d\u59cb\u5316\uff0c\u5177\u4f53\u7684\u53c2\u6570\u5b98\u7f51\u8bf4\u7684\u5f88\u6e05\u695a\uff0c\u4e0d\u591a\u8bf4)\u3002<\/p>\n<p>animation2\u4e0eanimation3\u5206\u522b\u662f\u201d\u51fa\u53d1\u57ce\u5e02\u201c\u4e0e\u201d\u5230\u8fbe\u57ce\u5e02\u201c\u5b9a\u4e49<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u5148\u6765\u8bf4\u8bf4animation2,animation3<\/p>\n<p>animation2\u8981\u5b8c\u6210\u7684\u662f\u4eceleft \u201d\u51fa\u53d1\u57ce\u5e02\u201c<strong>\u6c34\u5e73\u79fb\u52a8<\/strong>\u81f3\u201d\u5230\u8fbe\u57ce\u5e02\u201c\u5750\u6807<\/p>\n<p>\u6211\u4eec\u770b\u770b\u70b9\u51fb\u65cb\u8f6c\u56fe\u7247\u65f6\u4e8b\u4ef6\uff1a<\/p>\n<pre>&nbsp;1&nbsp;animation2.left('600rpx').step()&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationSourceCity:&nbsp;animation2.export()&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})&nbsp;5&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function(){&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation2.left('30rpx').step({duration:&nbsp;0,&nbsp;transformOrigin:&nbsp;\"50%,50%\",timingFunction:&nbsp;'linear'})&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.setData({&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationSourceCity:&nbsp;animation2.export()10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},285)12&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation3.right('580rpx').step()14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationDestCity:&nbsp;animation3.export()16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function(){19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation3.right('30rpx').step({duration:&nbsp;0,&nbsp;transformOrigin:&nbsp;\"50%,50%\",timingFunction:&nbsp;'linear'})20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.setData({21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationDestCity:&nbsp;animation3.export()22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},285)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u6211\u4eec\u6765\u5206\u6790\u4e0b\u4e0a\u9762\u7684\u4ee3\u7801\uff1a<\/p>\n<p>\u5728\u521d\u59cb\u5316\u7684\u65f6\u5019\uff0c\u8bbe\u7f6e\u4e86\u52a8\u753b\u5b8c\u6210\u65f6\u95f4duration\uff1a300ms,\u7d27\u63a5\u7740\uff0c\u70b9\u51fb\u56fe\u7247\u5f00\u59cb\u6c34\u5e73\u79fb\u52a8600rpx<\/p>\n<pre>animation2.left('600rpx').step()\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationSourceCity:&nbsp;animation2.export()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})\r\n\r\n\u8fd9\u4e2a\u65f6\u5019600rpx\u53ea\u662f\u7c97\u7565\u7684\u8ba1\u7b97\uff0c\u5e76\u4e0d\u662f\u771f\u6b63\u7684\u7cbe\u786e\u5b9a\u4f4d\uff0c\u539f\u56e0\u4e0a\u9762\u6211\u4eec\u89e3\u91ca\u5f88\u6e05\u695a\u4e86\uff0c\u79fb\u52a8600rpx\u6240\u9700\u65f6\u95f4\u662f300ms,\u7d27\u63a5\u7740\uff0c\u5982\u679c\u8fd9\u6837\u7684\u7ed3\u675f\u7684\u8bdd\uff0c\u5f88\u53ef\u80fd\u4f4d\u7f6e\u4f1a\u9519\u4f4d\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u5199\u4e00\u4e2a\"\u7279\u6b8a\u7684\u52a8\u753b\"setTimeout(function(){<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre>&lt;em&gt; &nbsp; &nbsp; &nbsp; &nbsp;animation2.left('30rpx').step({duration: 0, transformOrigin: \"50%,50%\",timingFunction: 'linear'}) &nbsp;&nbsp; &nbsp; &nbsp; that.setData({ &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; animationSourceCity: animation2.export() &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;})\r\n &nbsp; &nbsp;},285)&lt;br&gt;&lt;br&gt;\u8fd9\u4e2a\u52a8\u753b\u8868\u793a\uff0c\u5728285ms\u540e\uff0c\u5c06\u8981\u57280s\u65f6\u95f4\u5b8c\u6210\"\u590d\u4f4d\"\uff0c\u57280s\u65f6\u95f4\uff0c\u4f30\u8ba1\u6ca1\u6709\u4eba\u4f1a\u67e5\u89c9\u5f97\u5230\uff0c\u5475\u5475\uff0c\u590d\u4f4d\u7684\u597d\u5904\uff0c\u592a\u591a\u4e86\uff0c\u5982\u679c\u4e0d\u590d\u4f4d\uff0c\u610f\u5473\uff0c\u6211\u4eec\u7684\u5143\u7d20\u771f\u7684\u4ea4\u6362\u4e86\uff0c\u90a3\u6837\u4e8b\u4ef6\u4e5f\u7ed9\u4ea4\u6362\u4e86\uff0c\u7ed9\u6211\u4eec\u5e26\u6765\u4e86&lt;br&gt;\u592a\u591a\u7684\u9ebb\u70e6\uff0c&lt;br&gt;\u800c\u590d\u4f4d\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u4ec5\u4ec5\u4ea4\u6362\u4e86\u201d\u57ce\u5e02\u6587\u672c\u201c\u800c\u4e0d\u662f\u6240\u6709\u3002\u54c8\u54c8~\u5f00\u5fc3\uff0c\u53ea\u6240\u4ee5\u5b9a\u4e49285ms\uff0c\u662f\u7ed9\u4e00\u4e2a\u5f88\u77ed\u7684\u673a\u4f1a\uff0c\u8ba9\u4eba\u770b\u4e0d\u5230\u590d\u4f4d\u7684\u6267\u884c,\u6bd5\u7adf\u4e0a\u9762\u7684300ms\u7684\u6c34\u5e73\u52a8\u753b\u8fd8\u6ca1\u6709\u6267\u884c\u5b8c\u561b&lt;br&gt;\u800c\u771f\u6b63\u7684\u6362\u4ea4\u5728\u4e0b\u9762\u7684\u4e00\u53e5\u8bdd&lt;\/em&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre>&nbsp;&nbsp;var&nbsp;tempSourceCity=this.data.sourceCity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;tempDestCity=this.data.destCity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sourceCity:tempDestCity,\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destCity:tempSourceCity\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u540c\u7406\uff0cright\u4e5f\u4e00\u6837\u6765\u73b0\u5b9e\uff0c\u8fd9\u91cc\u4e0d\u591a\u8bf4\u4e86\uff0c\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u8bf4\u8bf4\uff0c\u4ea4\u6362\u6309\u626d\u56fe\u7247\u7684\u65cb\u8f6c\u52a8\u753b<\/p>\n<p>\u5982\u679c\u5728\u70b9\u51fb\u4e8b\u4ef6rotate\u91cc\u6211\u4eec\u8fd9\u6837\u5199\u5165<\/p>\n<pre>animation1.rotate(180).step()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;animation1.export()\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u6069\uff0c\u770b\u8d77\u6765\u4e0d\u9519\uff0c\u6211\u4eec\u5c1d\u8bd5\u7684\u65f6\u5019\uff0c\u7b2c\u4e00\u65cb\u8f6c\u4e86\uff0c\u7136\u540e\u7b2c\u4e8c\u6b21\uff0c\u7b2c\u4e09\u6b21\u3002\u3002\u3002\u5e76\u6ca1\u6709\u65cb\u8f6c\u3002\u554a\u5440\uff0c\u6101\u4eba\u7684\u4e8b\u60c5\u53c8\u6765\u4e86\u3002\u6211\u4f1a\u4e0d\u5c3d\u7684\u62a5\u6028\uff0c\u5c0f\u7a0b\u5e8f\u5440\uff0c\u4f60\u7684bug\u53c8\u6765\u4e86\u3002<\/p>\n<p>\u5176\u5b9e\u4f60\u770b\u5b98\u7f51\u7ed9\u51fa\u7684\u4f8b\u5b50\u4e5f\u662f\u5982\u6b64\uff0c\u65cb\u8f6c\u4e00\u4e0b\uff0c\u518d\u4e5f\u4e0d\u65cb\u8f6c\u4e86\uff0c\u9664\u975e\u4f60\u5237\u65b0\u4e0b\u9875\u9762\u3002<\/p>\n<p>\u62a5\u6028\u5f52\u62a5\u6028\uff0c\u7eb3\u95f7\u5f52\u7eb3\u95f7\uff0c\u95ee\u9898\u8fd8\u8981\u662f\u89e3\u51b3\u7684\u3002<\/p>\n<p>\u8fd9\u662f\u4e0d\u662f\u6211\u4eec\u81ea\u5df1\u7684\u95ee\u9898\u5462\uff1f\u4e00\u4e07\u4e2a\u4e3a\u4ec0\u4e48\u3002\u3002\u3002<\/p>\n<p>\u4e0d\u662f\uff01\u8fd8\u8bb0\u5f97\uff0c\u5728css3\u52a8\u753b\u7684\u65f6\u5019\uff0c\u786e\u5b9e\u4e5f\u8fd9\u6837\uff0c\u6211\u6765\u753b\u56fe\u89e3\u91ca\u4e0b\u4e3a\u4ec0\u4e48\uff01<\/p>\n<p>\u56fe\u4e00\u3001\u65cb\u8f6c\u524d\uff1a\uff08\u6ce8\u610fA\u70b9\u7684\u4f4d\u7f6e\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/17bc4812699d4db6d5dab0a362aab0de-26.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe24\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe24\" \/><\/p>\n<p>\u56fe\u4e8c\u3001\u65cb\u8f6c180\u5ea6\u540e\uff08\u6ce8\u610fA\u7684\u4f4d\u7f6e\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/20f19823d685c3fdf7beaf706d52878a-27.png\" class=\"aligncenter\" title=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe25\" alt=\"\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u63d2\u56fe25\" \/><\/p>\n<p>\u56fe\u4e8c\u662f\u70b9\u51fb\u65cb\u8f6c\u56fe\u7247\u540e\uff0c\u81ea\u5df1\u5904\u4e8e180\u5ea6\u72b6\u6001\uff0c\u6b64\u65f6\uff0c\u518d\u6b21\u70b9\u51fb\u6b64\u65cb\u8f6c\u56fe\u7247\uff0c\u610f\u5473\u7740\uff0c\u8ba9\u5b83\u518d\u6b21\u4ece0\u5ea6\u65cb\u8f6c\u5230180\u5ea6\uff0c\u53ef\u662f\u6211\u4eec\u7684\u4ee3\u7801\u662f<\/p>\n<pre>animation1.rotate(180).step()<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>&nbsp;\u8fd9\u884c\u4ee3\u7801\u8868\u793a\uff0c\u8ba9\u5b83\u5728300ms(\u521d\u59cb\u5316\u521b\u5efa\u7684\u65f6\u95f4)\u5185\u65cb\u8f6c\u5230180\u5ea6\uff0c\u800c\u662f\u6b64\u65f6\u5df2\u5904\u7406180\u5ea6\u5566\uff0c\u4f60\u70b9\u51fb\u5f53\u7136\u5b83\u4e0d\u4f1a\u518d\u65cb\u8f6c\u4e86\u3002\u5b83\u4f1a\u4e0d\u505c\u62a5\u6028\u201d\u6211\u5df2\u5728180\u5ea6\u4e86\u5440\uff0c\u4f60\u8fd8\u60f3\u600e\u4e48\u6837\uff1f\uff01&#8230;\u201c<\/p>\n<p>\u6240\u4ee5\uff0c\u6b64\u65f6\uff0c\u6211\u4eec\u80fd\u4e0d\u80fd\u76f4\u63a5\u518d\u8ba9\u65cb\u8f6c360\u5ea6\uff0c\u90a3\u4e48\u5b83\u4e0d\u5c31\u76f8\u5bf9\u4e8e180\u5ea6\u540e\u7684\u72b6\u6001\u53c8\u8f6c\u4e86180\u5ea6\u4e86\u5417\uff1f\u53ef\u662f\u770b\u770b\u5b98\u7f51\uff0c\u65cb\u8f6c\u7684\u8303\u56f4\u662f-180~180\u5ea6\uff0c\u65e2\u4f7f\u6ca1\u6709\u8fd9\u4e48\u8303\u56f4\u9650\u5236\uff0c\u90a3\u4e48\u6211\u4eec\u4e5f\u4f1a\u6298\u817e\u6b7b\uff0c\u4e0d\u662f\u5417\uff1f\u6bcf\u6b21\u90fd\u8981180*2\uff0c180*3&#8230;,\u8868\u793a\u4e0d\u670d\uff01<\/p>\n<p>\u6211\u60f3\u53ea\u8981\u95ee\u9898\u627e\u5230\u4e86\uff0c\u5176\u5b9e\u90fd\u5f88\u7b80\u5355\u4e86\uff0c\u6b64\u65f6\u4f30\u8ba1\u90fd\u6709\u670b\u53cb\u60f3\u5230\u4e86\uff0c\u5c31\u662f\u76f4\u63a5\u8ba9\u5b83\u5f520\u5ea6\u561b\uff0c\u8fd9\u4e2a\u5f520\u5ea6\u7684\u52a8\u753b\u65f6\u95f4\u5fc5\u987b\u8981\u77ed\uff0c\u4e0d\u7136\u5c31\u8981\u8ba9\u4eba\u770b\u5230\u4e86\u4e00\u4e2a\u201d\u5012\u65cb\u8f6c\u7684\u8fc7\u7a0b\u201c\uff0c\u54c7\uff0c\u90a3\u591a\u4e48\u7684\u96be\u770b\u5440\uff0cOK\uff0c\u52a8\u753b\u561b\uff0c\u4e0a\u9762\u6211\u4eec\u90fd\u6709\u5148\u4f8b\uff0c0s\u590d\u4f4d\u52300\u5ea6\uff0c\u4f60\u773c\u795e\u518d\u597d\uff0c\u4e5f\u67e5\u89c9\u4e0d\u5230\uff0c\u563f\u563f\u3002\u3002\u3002<\/p>\n<p>\u5b8c\u6574\u7684\u65cb\u8f6c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&nbsp;1&nbsp;animation1.rotate(180).step()&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.setData({&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;animation1.export()&nbsp;5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;that=this;&nbsp;\r\n&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function(){&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation1.rotate(0).step({duration:&nbsp;0,&nbsp;transformOrigin:&nbsp;\"50%,50%\",timingFunction:&nbsp;'linear'})10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.setData({11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animationData:&nbsp;animation1.export()12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},300)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u610f\u601d\u662f\uff0c\u5728\u70b9\u51fb\u65f6\u5019\uff0c\u5728300ms\u5185\u65cb\u8f6c180\u5ea6\uff0c\u540c\u65f6\u5728300ms\u540e\u6267\u884c\u4e00\u4e2a\u57280s\u65f6\u95f4\u5b8c\u6210\u65b0\u7684\u52a8\u753b\u8ba9\u5b83\u590d\u4f4d\u81f30\u5ea6\uff0c\u4e0b\u6b21\u70b9\u51fb\u65f6\uff0c\u5b83\u5c31\u518d\u6b21\u53ef\u4ee5\u65cb\u8f6c\u4e86\uff01<\/p>\n<pre>animation1.rotate(0).step({duration:&nbsp;0,&nbsp;transformOrigin:&nbsp;\"50%,50%\",timingFunction:&nbsp;'linear'})\r\n\/\/\u5f520\u5ea6\u201d\u590d\u4f4d\u201c<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0a\u9762\u7684\u601d\u60f3\u5e76\u4e0d\u96be\uff0c\u5c31\u662f\u6709\u65f6\u5019\u4e0d\u597d\u53d1\u73b0\uff0c\u6216\u8005\u8bf4\uff0c\u6ca1\u63a5\u89e6\u8fc7\u52a8\u753b\u7684\u670b\u53cb\uff0c\u4e00\u65f6\u534a\u65f6\u627e\u4e0d\u51fa\u95ee\u9898\u6240\u5728\uff0c\u5199\u5728\u6b64\uff0c\u5c3d\u53ef\u80fd\u7684\u8ba9\u5927\u5bb6\u5c11\u8d70\u5f2f\u8def\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u8fd9\u90e8\u5206\u7684\u52a8\u753b\u5c31\u5168\u90e8\u5b8c\u6210\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u8fd8\u6709\u9996\u9875\u7684\u4e0a\u4e0b\u4e0d\u95f4\u65ad\u6eda\u52a8\u3001\u7c7b\u4f3c\u82f9\u679c\u624b\u673aios app\u7684\u6ed1\u52a8\u3001\u5220\u9664\u6548\u679c\uff0c\u4ee5\u53cahttps api\uff08\u57fa\u4e8easp.net mvc\uff09\u7684\u642d\u5efa\u3001\u4ea4\u4e92\u7b49\u7b49\uff0c\u671f\u5f85\u7740\u6211\u4eec\u4e00\u4e2a\u4e00\u4e2a\u7684\u89e3\u51b3\u5462\uff0c\u8fd9\u4e9b\u6211\u51c6\u5907\u5c06\u5728\u540e\u9762\u7684\u6587\u7ae0\u9646\u9646\u7eed\u7eed\u7684\u5199\u51fa\uff0c\u656c\u8bf7\u5173\u6ce8\uff0c\u8c22\u8c22\u3002&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5206\u4eab\u4e00\u4e2a\u672c\u4eba\u7684\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5fc3\u5f97\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e5f\u5df2\u51fa\u6765\u6709\u4e00\u6bb5\u65f6\u95f4\u4e86\uff0c\u6700\u8fd1\u5199\u4e86\u51e0\u6b3e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u9879\u76ee\uff0c\u4eca\u5929\u6765\u8bf4\u8bf4\u611f\u53d7\u3002 \u9996\u5148\u5f00\u53d1\u4e00\u6b3e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u6700\u4e3b\u8981\u7684\u5c31\u662f\u9488\u5bf9\u4e8e\u516c\u53f8\u6765\u8fd0\u8425\u7684\uff0c\u56e0\u4e3a\uff0c\u5728\u7533\u8bf7appid(\u5fae\u4fe1\u5c0f\u7a0b\u5e8fID\u53f7)\u65f6\u5019\uff0c\u9700\u8981\u586b\u5199\u76f8\u5173\u7684\u516c\u53f8\u8ba4\u8bc1\u4fe1\u606f\u5982\uff0c\u8425\u4e1a\u6267\u7167\u7b49 \u518d\u6b21\u5c31\u662f\u7528\u4e00\u4e2a\u672a\u66fe\u5f00\u901a\u8fc7\u516c\u4f17\u53f7\u7684QQ\u53f7\u6216\u5fae\u4fe1\u53f7\u6765\u6ce8\u518c\u4e00\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u53f7\u3002 \u6700\u540e\uff0c\u4e0b\u8f7d\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u3002 \u7531\u4e8e\u8fd9\u91cc\uff0c\u6211\u4eec\u66f4\u591a\u7684\u5173\u6ce8\u5982\u4f55\u53bb\u5f00\u53d1\u4e00\u4e9bapp,\u800c\u4e0d\u662f\u79d1\u8c31\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff0c\u6545\u5728\u6b64\u4e0d\u5728\u8fc7\u591a\u7684\u89e3\u91ca\uff0c\u8be6\u7ec6\u7684\u8bf4\u660e\uff0c\u53ef\u4ee5\u53bb\u5b98\u7f51\u5e2e\u52a9\u6587\u6863\u3002 \u9996\u5148\uff0c\u6211\u4eec\u62ff\u81ea\u5df1\u7684\u9879\u76ee\u5728\u4e00\u6b65\u4e00\u6b65\u7684\u8bf4\u660e\u5e76\u5f00\u53d1\u5427\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5fae\u4fe1app\u7684\u622a\u56fe &nbsp; \u5728\u770b\u5230\u4e0a\u56fe\uff0c\u5c0f\u4f19\u4f34\u4eec\u5927\u81f4\u6709\u4e00\u4e2a\u4e86\u89e3\uff0c\u8fd9\u4e2a\u662f\u8c03\u8bd5\u5de5\u5177\u4e2d\u7684\uff0c\u4e00\u4e9b\u6548\u679c\u6ca1\u6709\u5728\u771f\u673a\u4e0a\u597d\u770b\u3002 \u7531\u4e8e\u5728\u5f00\u53d1\u4e2d\uff0c\u672c\u4ee5\u4e3a\u753b\u9762\u4e0d\u662f\u5f88\u6d41\u5229\uff0c\u5b9e\u9645\u4e0a\u5b8c\u5168\u51fa\u4e4e\u6211\u7684\u610f\u6599\uff0c\u52a8\u753b\u6548\u679c\u5f88\u6d41\u7545\uff0c\u53ef\u4ee5\u4e0eios,andriod app\u76f8\u5ab2\u7f8e\uff0c\u4ee5\u540e\u6709\u65f6\u95f4\u8bb2\u8bb2\u5f00\u53d1\u5176\u5b83app\u7684\u76f8\u5173\u4f8b\u5b50\u3002 \u5728\u4ecb\u7ecd\u8fd9\u4e2a\u6587\u7ae0\u524d\uff0c\u5047\u8bbe\u7528\u6237\u90fd\u5df2\u770b\u8fc7\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u76f8\u5173\u6587\u6863\u3002 \u8fd9\u4e2a\u9879\u76ee\u57fa\u672c\u4e0a\u662f\u6309\u7167\u5fae\u4fe1\u539f\u6709\u7684\u6587\u4ef6\u7ed3\u6784\u6765\u7684\uff0c\u5e76\u6ca1\u6709\u989d\u5916\u7684\u53bb\u6dfb\u52a0\u7279\u522b\u591a\u7684\u6587\u4ef6\u7ed3\u6784\uff0c\u56e0\u4e3a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u89c4\u5b9a\uff0c\u9879\u76ee\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc71M\uff0c\u8981\u6c42\u6211\u4eec\u5c3d\u53ef\u80fd\u7684\u538b\u7f29\u5c0f\u7a0b\u5e8f\u4ee3\u7801\u6216\u5176\u5b83\u56fe\u7247\u6587\u4ef6\u7b49\uff0c\u4e0b\u9762\u662f\u5fae\u4fe1app\u6587\u4ef6\u7ed3\u6784\u6574\u4f53\u622a\u56fe &nbsp; 1.app.js \u4e3b\u8981\u662f\u5168\u5c40\u516c\u5171\u7684js\u65b9\u6cd5\u58f0\u660e\u53ca\u8c03\u7528\u6240\u5728\u7684\u6587\u4ef6 2.app.json \u662f\u5c0f\u7a0b\u5e8f\u6574\u4e2a\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6240\u4ee5\u6709\u7684\u9875\u9762\u90fd\u5728\u8981\u6b64\u6ce8\u518c\uff0c\u4e0d\u7136\u4e0d\u5141\u8bb8\u8bbf\u95ee\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09 3.app.wxss \u662f\u5c0f\u7a0b\u5e8f\u5168\u5c40\u7684css\u6587\u4ef6\uff0c\u516c\u5171css\u5199\u5728\u6b64\u6700\u597d\u4e0d\u8fc7\u7684\u4e86 4.pages\u4e0b\u662f\u5bf9\u5e94\u7740\u6240\u6709\u9875\u9762\uff0c\u6bcf\u4e2a\u9875\u9762\uff0c\u53ef\u4ee5\u6dfb\u52a0\u56db\u79cd\u7c7b\u578b\u7684\u6587\u4ef6\uff0c.json\uff0c.wxss\uff0c.wxml\uff0c.js \uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09 5.utils \u662f\u6211\u4eec\u516c\u5171\u7684js\u5b58\u653e\u7684\u5730\u65b9\uff0c\u56e0\u4e3a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8981\u6c42\uff0c\u6bcf\u4e2ajs\u6587\u4ef6\u91cc\u7684\u65b9\u6cd5\u4e0d\u53ef\u4ee5\u76f4\u63a5\u5f15\u7528\u6216\u8c03\u7528\uff0c\u5fc5\u987b\u8981\u7528 module.exports\u65b9\u6cd5\u5bfc\u51fa\uff0c\u8fd9\u6837pages \u4e0b\u7684.js\u6587\u4ef6\u624d\u53ef\u4ee5\u8c03\u7528\u5230\u6211\u4eec\u5728\u6b64\u5199\u7684js\u65b9\u6cd5\u3002\u8fd9\u70b9\u7279\u522b\u8981\u6ce8\u610f 1)app.json\u9875\u9762\u914d\u7f6e\u53ca\u6ce8\u518c\uff1a &nbsp; 2)pages\u9875\u9762\u7ed3\u6784: &nbsp; \u4e0b\u9762\u6211\u4eec\u5f00\u59cb\u8be6\u7ec6\u7684\u8bb2\u89e3\u6bcf\u4e2a\u9875\u9762 \u4e00\u3001\u9996\u9875 \u9996\u9875\u5206\u4e3a\u56db\u4e2a\u6587\u4ef6\u7ec4\u6210\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5177\u4f53\u7684\u9875\u9762\u529f\u80fd\uff0c\u4e0a\u9762\u5df2\u8bf4\u8fc7\u3002 &nbsp;\u4e0b\u9762\u6765\u770b\u4e0b\uff0cindex.wxml\u6548\u679c &nbsp;\u6700\u4e0a\u9762\u7684\u201c\u6765\u8fd0\u5427\u201d\u6807\u9898\uff0c\u5728index.json\u6587\u4ef6\u4e0b\u5b9a\u4e49\u7684\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u53ef\u4ee5\u7528\u4e0d\u540c\u7684.json\u6765\u5b9a\u4e49\uff0c\u5f53\u7136\u4ee3\u7801\u4e5f\u53ef\u4ee5\u52a8\u6001\u6539\u53d8\u5b83 \u5f88\u7b80\u5355\u5427\uff0c\u6807\u9898\u5c31\u8fd9\u4e48\u7b80\u5355\u7684\u51fa\u73b0\u4e86\u3002 1\uff09\u63a5\u4e0b\u6765\u770b\u770b\u6a2a\u5411\u6eda\u52a8\u7684banner, index.wxml\u8fd9\u6837\u6765\u63cf\u8ff0 \u90a3\u4e48swiper\u662f\u4ec0\u4e48\u4e1c\u4e1c\u5462\uff1f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5e2e\u52a9\u6587\u6863\u8fd9\u6837\u8bf4\u660e\u7684&nbsp;swiper\u6ed1\u5757\u89c6\u56fe\u5bb9\u5668 \u5c5e\u6027\u540d \u7c7b\u578b \u9ed8\u8ba4\u503c \u8bf4\u660e indicator-dots Boolean false \u662f\u5426\u663e\u793a\u9762\u677f\u6307\u793a\u70b9 autoplay Boolean false \u662f\u5426\u81ea\u52a8\u5207\u6362 current Number 0 \u5f53\u524d\u6240\u5728\u9875\u9762\u7684 index [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-29963","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29963"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29963\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}