{"id":30256,"date":"2024-11-25T15:08:36","date_gmt":"2024-11-25T07:08:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30256\/"},"modified":"2024-11-25T15:08:36","modified_gmt":"2024-11-25T07:08:36","slug":"%e5%be%ae%e4%bf%a1%e5%bc%80%e5%8f%91%e4%b9%8b%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e8%b7%91%e6%ad%a5%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30256\/","title":{"rendered":"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f"},"content":{"rendered":"<p><strong><span style=\"font-size: 18px\">\u524d\u8a00<\/span><\/strong><\/p>\n<p>\u6211\u5df2\u7ecf\u628a\u5168\u90e8\u4ee3\u7801\u653e\u5728github\u4e0a-weChatApp-Run\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6765\u770b\u770b\u6216\u8005\u5148star\u6536\u85cf\uff0c\u6211\u4ee5\u540e\u8fd8\u4f1a\u8fdb\u884c\u4e00\u4e9b\u4f18\u5316\u3002\u73b0\u5728\u53ea\u662f\u4e00\u4e2a\u5b66\u4e60Demo\uff0c\u5927\u5bb6\u6c9f\u901a\u5b66\u4e60\uff0c\u5b9e\u9645\u5e94\u7528\u8fd8\u9700\u66f4\u591a\u4f18\u5316\u3002<\/p>\n<h1>\u6b63\u6587<\/h1>\n<h3>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/h3>\n<p>1\u3001\u6ce8\u518c\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u8d26\u53f7\uff0c\u5f97\u7528\u4e00\u4e2a\u6ca1\u6ce8\u518c\u8fc7\u516c\u4f17\u53f7\u7684\u90ae\u7bb1\u6ce8\u518c\u3002<br \/>2\u3001\u6ce8\u518c\u8fc7\u7a0b\u4e2d\u9700\u8981\u5f88\u591a\u8ba4\u8bc1\uff0c\u6709\u5f88\u591a\u8ba4\u8bc1\uff0c\u6bd4\u8f83\u7e41\u7410\uff0c\u5982\u679c\u6682\u65f6\u53ea\u662f\u5f00\u53d1\u6d4b\u8bd5\uff0c\u4e0d\u8fdb\u884c\u63d0\u5ba1\u3001\u53d1\u5e03\u7684\u8bdd\uff0c\u53ea\u8981\u5b8c\u6210\u8425\u4e1a\u6267\u7167\u53f7\u586b\u5199\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u9700\u8981\u5b8c\u6210\u5fae\u4fe1\u8ba4\u8bc1\u3002<br \/>3\u3001\u6ce8\u518c\u5b8c\u8d26\u53f7\uff0c\u767b\u5f55\uff0c\u5728\u4e3b\u9875\u9762\u5de6\u8fb9\u5217\u8868\u4e2d\u70b9\u51fb\u8bbe\u7f6e\uff0c\u7136\u540e\u518d\u8bbe\u7f6e\u9875\u9762\u4e2d\u9009\u5f00\u53d1\u8bbe\u7f6e\u5c31\u53ef\u4ee5\u770b\u5230AppID\uff0c\u7528\u4e8e\u767b\u5f55\u5f00\u53d1\u5de5\u5177\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/12a40b6e040792c70592c2c0f5832b61-0.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe\" \/><\/p>\n<p>\u4e3b\u9875\u9762<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/12a40b6e040792c70592c2c0f5832b61-1.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe1\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe1\" \/><\/p>\n<p>\u8bbe\u7f6e\u9875\u9762<\/p>\n<h3>\u4e8c\u3001\u5f00\u53d1\u5de5\u5177<\/h3>\n<p>\u53ef\u4ee5\u5230\u5b98\u7f51\u4e0b\u8f7d\u5f00\u53d1\u5de5\u5177\u4e0b\u8f7d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/7e2637d06daa634763a085404578d23b-2.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe2\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe2\" \/><\/p>\n<p>\u5f00\u53d1\u5de5\u5177<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/7e2637d06daa634763a085404578d23b-3.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe3\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe3\" \/><\/p>\n<p>\u5f00\u53d1\u5de5\u5177\u7f16\u8f91\u9875\u9762<\/p>\n<h3>\u4e09\u3001\u5f00\u59cb\u9879\u76ee<\/h3>\n<p>\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u9009\u62e9\u5c0f\u7a0b\u5e8f\u9009\u9879\uff0c\u5230\u8fbe\u6dfb\u52a0\u9879\u76ee\u9875\u9762<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/84615ed34abcdb12dbd95add29e49a46-4.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe4\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe4\" \/><\/p>\n<p>\u6dfb\u52a0\u9879\u76ee<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\u5728\u524d\u9762\u8bbe\u7f6e\u9875\u9762\u7684AppId\u5c31\u7528\u5230\u4e86\u3002<\/p>\n<p>\u5982\u679c\u9879\u76ee\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u662f\u4e2a\u7a7a\u6587\u4ef6\u5939\uff0c\u4f1a\u63d0\u793a\u662f\u5426\u521b\u5efaquick start \u9879\u76ee\u3002<br \/>\u9009\u62e9\u201c\u662f\u201d\uff0c\u5f00\u53d1\u8005\u5de5\u5177\u4f1a\u5e2e\u52a9\u6211\u4eec\u5728\u5f00\u53d1\u76ee\u5f55\u91cc\u751f\u6210\u4e00\u4e2a\u7b80\u5355\u7684 demo\u3002<br \/>\u8fd9\u4e2aDemo\u62e5\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u5c0f\u7a0b\u5e8f\u7684\u5927\u6982\u6846\u67b6\u3002<\/p>\n<h5>1\u3001\u6846\u67b6<\/h5>\n<p>\u5148\u770b\u4e0b\u4e00\u76ee\u5f55\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/84615ed34abcdb12dbd95add29e49a46-5.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe5\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe5\" \/><\/p>\n<p>\u6587\u4ef6\u76ee\u5f55.png<\/p>\n<p>app.js: \u5c0f\u7a0b\u5e8f\u903b\u8f91\uff0c\u751f\u547d\u5468\u671f\uff0c\uff0c\u5168\u5c40\u53d8\u91cf<br \/>app.json: \u5c0f\u7a0b\u5e8f\u516c\u5171\u8bbe\u7f6e\uff0c\u5bfc\u822a\u680f\u989c\u8272\u7b49\uff0c\u4e0d\u53ef\u4ee5\u6ce8\u91ca<br \/>app.wxss :\u5c0f\u7a0b\u5e8f\u516c\u5171\u6837\u5f0f\uff0c\u7c7bCSS \u3002<\/p>\n<h5>\u5c0f\u7a0b\u5e8f\u9875\u9762\u6784\u6210\uff1a<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/84615ed34abcdb12dbd95add29e49a46-6.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe6\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe6\" \/><\/p>\n<p>\u9875\u9762\u6784\u6210<\/p>\n<p>\u6bcf\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9875\u9762\u662f\u7531\u540c\u8def\u5f84\u4e0b\u540c\u540d\u7684\u56db\u4e2a\u4e0d\u540c\u540e\u7f00\u6587\u4ef6\u7684\u7ec4\u6210\uff0c\u5982\uff1aindex.js\u3001index.wxml\u3001index.wxss\u3001index.json\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/27427ea602df4675fb4c8cf8501297d7-7.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe7\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe7\" \/><\/p>\n<p>\u845b\u6587\u4f73\u4ecb\u7ecd<\/p>\n<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u6bcf\u4e00\u4e2a\u9875\u9762\u7684\u3010\u8def\u5f84+\u9875\u9762\u540d\u3011\u90fd\u9700\u8981\u5199\u5728 app.json \u7684 pages \u4e2d\uff0c\u4e14 pages \u4e2d\u7684\u7b2c\u4e00\u4e2a\u9875\u9762\u662f\u5c0f\u7a0b\u5e8f\u7684\u9996\u9875\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/27427ea602df4675fb4c8cf8501297d7-8.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe8\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe8\" \/><\/p>\n<p>\u8def\u5f84<\/p>\n<p>\u8fd9\u56db\u4e2a\u6587\u4ef6\u6309\u7167\u529f\u80fd\u53ef\u4ee5\u5206\u6210\u4e09\u4e2a\u90e8\u5206\uff1a<\/p>\n<blockquote><p>\n  \u914d\u7f6e\uff1ajson \u6587\u4ef6\u903b\u8f91\u5c42\uff1ajs\u6587\u4ef6\u89c6\u56fe\u5c42\uff1awxss.wxml\u6587\u4ef6\n<\/p><\/blockquote>\n<p>\u5728 iOS \u4e0a\uff0c\u5c0f\u7a0b\u5e8f\u7684  \u4ee3\u7801\u662f\u8fd0\u884c\u5728 JavaScriptCore \u4e2d<br \/>\u5728  \u4e0a\uff0c\u5c0f\u7a0b\u5e8f\u7684 javascript \u4ee3\u7801\u662f\u901a\u8fc7 X5 \u5185\u6838\u6765\u89e3\u6790<br \/>\u5728 \u5f00\u53d1\u5de5\u5177\u4e0a\uff0c \u5c0f\u7a0b\u5e8f\u7684 javascript \u4ee3\u7801\u662f\u8fd0\u884c\u5728 nwjs\uff08ome\u5185\u6838\uff09 \u4e2d\u3002\u6240\u4ee5\u5f00\u53d1\u5de5\u5177\u4e0a\u7684\u6548\u679c\u8ddf\u5b9e\u9645\u6548\u679c\u6709\u6240\u51fa\u5165\u3002<\/p>\n<h5>2\u3001\u7ec4\u4ef6<\/h5>\n<p>\u5fae\u4fe1\u63d0\u4f9b\u4e86\u8bb8\u591a\u7ec4\u4ef6\uff0c\u4e3b\u8981\u5206\u4e3a\u516b\u79cd:<\/p>\n<blockquote>\n<p>\u89c6\u56fe\u5bb9\u5668\u3001<br \/>\u57fa\u7840\u5185\u5bb9\u3001<br \/>\u8868\u5355\u7ec4\u4ef6\u3001<br \/>\u64cd\u4f5c\u53cd\u9988\u3001<br \/>\u5bfc\u822a\u3001<br \/>\u5a92\u4f53\u7ec4\u4ef6\u3001<br \/>\u5730\u56fe\u3001<br \/>\u753b\u5e03<\/p>\n<\/blockquote>\n<p>\u5305\u542bview\u3001scroll-view\u3001button\u3001form\u7b49\u666e\u901a\u5e38\u7528\u7684\u7ec4\u4ef6\uff0c\u4e5f\u63d0\u4f9b\u4e86\u5730\u56fe\u3001\u753b\u5e03\u3002<\/p>\n<p>\u7ec4\u4ef6\u4e3b\u8981\u5c5e\u4e8e\u89c6\u56fe\u5c42\uff0c\u901a\u8fc7wxml\u6765\u8fdb\u884c\u7ed3\u6784\u5e03\u5c40\uff0c\u7c7b\u4f3c\u4e8ehtml\u3002\u901a\u8fc7wxss\u4fee\u6539\u6837\u5f0f\uff0c\u7c7b\u4f3c\u4e8ecss\u3002<br \/>\u7ec4\u4ef6\u4f7f\u7528\u8bed\u6cd5\u5b9e\u4f8b\uff1a<\/p>\n<pre>&lt;!--\u666e\u901a\u89c6\u56fe--&gt;\r\n&lt;view&gt;\u8fd9\u662f\u4e00\u4e2a\u666e\u901a\u89c6\u56fe&lt;\/view&gt;\r\n\r\n&lt;!--wxss\u6837\u5f0f\u4fee\u6539--&gt;\r\n&lt;view clas=\"mainView\"&gt;\u6837\u5f0f\u4fee\u6539\u8fc7\u7684\u89c6\u56fe&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u66f4\u591a\u7684\u7ec4\u4ef6\u4ee5\u53ca\u76f8\u5173\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u5230\u5b98\u65b9\u6587\u6863-\u7ec4\u4ef6\u67e5\u770b<\/p>\n<h5>3\u3001 <\/h5>\n<blockquote>\n<p>\u7f51\u7edc<br \/>\u5a92\u4f53<br \/>\u6570\u636e<br \/>\u4f4d\u7f6e<br \/>\u8bbe\u5907<br \/>\u754c\u9762<br \/>\u5f00\u53d1\u63a5\u53e3<\/p>\n<\/blockquote>\n<p>\u5176\u4e2d\u7f51\u7edc\u8bf7\u6c42\u7684\u4f7f\u7528\u5fc5\u987b\u5148\u5230\u516c\u4f17\u5e73\u53f0\u767b\u5f55\u5c0f\u7a0b\u5e8f\u8d26\u53f7\uff0c\u5728\u8bbe\u7f6e\u9875\u9762\u90a3\u91cc\uff0c\u8bbe\u7f6e\u5141\u8bb8\u8bbf\u95ee\u7684\u57df\u540d\uff0c\u7f51\u7edc\u8bf7\u6c42\u5305\u542b\u4e86\u666e\u901a\u7684http\u8bf7\u6c42\u3001\u652f\u6301\u3001\u4e0b\u8f7d\u3001socket\u3002\u57fa\u672c\u4e0a\u6ee1\u8db3\u4e86\u6211\u4eec\u5f00\u53d1\u4e2d\u6240\u9700\u8981\u7684\u7f51\u7edc\u9700\u6c42\u3002<\/p>\n<p>\u8fd9\u4e9bAPI\u5c5e\u4e8e\u903b\u8f91\u5c42\uff0c\u5199\u5728js\u6587\u4ef6\u4e2d\uff0c<br \/>\u4f7f\u7528\u5b9e\u4f8b:<\/p>\n<pre>wx.getLocation({\r\n&nbsp;&nbsp;&nbsp;type:&nbsp;'wgs84',\r\n&nbsp;&nbsp;&nbsp;success:&nbsp;function(res)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;latitude&nbsp;=&nbsp;res.latitude&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;longitude&nbsp;=&nbsp;res.longitude&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;speed&nbsp;=&nbsp;res.speed&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;accuracy&nbsp;=&nbsp;res.accuracy&nbsp;\r\n}})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u53ef\u4ee5\u5230\u5b98\u65b9\u6587\u6863-API\u67e5\u770b\u5176\u5b83API\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<h5>4\u3001\u7f16\u8bd1\u8fd0\u884c<\/h5>\n<p>1\u3001\u6a21\u62df\u5668<br \/>\u53ef\u4ee5\u5728\u6a21\u62df\u5668\u4e0a\u770b\u6548\u679c\uff0c\u4e0a\u9762\u964d\u5230\u4e86\u8fd0\u884c\u5e95\u5c42\u4e0d\u540c\uff0c\u6548\u679c\u8ddf\u5728\u624b\u673a\u4e0a\u8fd0\u884c\u6709\u4e9b\u5dee\u5f02<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/27427ea602df4675fb4c8cf8501297d7-9.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe9\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe9\" \/><\/p>\n<p>\u6a21\u62df\u5668.png<\/p>\n<p>2\u3001\u771f\u673a<br \/>\u5728\u5de6\u8fb9\u7684\u9009\u9879\u680f\u4e2d\uff0c\u9009\u62e9\u9879\u76ee\uff0c\u7136\u540e\u70b9\u9884\u89c8\u4f1a\u751f\u4ea7\u4e00\u4e2a\u4e8c\u7ef4\u7801\uff0c\u7528\u7ba1\u7406\u5458\u5fae\u4fe1\u53f7\u626b\u4e00\u626b\u5c31\u53ef\u4ee5\u5728\u771f\u673a\u4e0a\u770b\u5b9e\u9645\u6548\u679c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/dcc9bbed00ac25169d80a66905e96fd8-10.png\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe10\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe10\" \/><\/p>\n<p>Paste_Image.png<\/p>\n<h3>\u5b9e\u8df5&#8211;\u8dd1\u6b65\u5c0f\u7a0b\u5e8f\u3002<\/h3>\n<h4>\u771f\u673a\u8fd0\u884c\u622a\u56fe\uff08\u8fd0\u884c\u4e8eiPhone7\uff0c\u5fae\u4fe1\u7248\u672c\uff1a6.3.30\uff09\uff1a<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/dcc9bbed00ac25169d80a66905e96fd8-11.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe11\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe11\" \/><\/p>\n<p>home.jpeg<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/521d3b80508b1aa889eca3e9242dfe05-12.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe12\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe12\" \/><\/p>\n<p>run.jpeg<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/521d3b80508b1aa889eca3e9242dfe05-13.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe13\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe13\" \/><\/p>\n<p>slideback.jpeg<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/521d3b80508b1aa889eca3e9242dfe05-14.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe14\" alt=\"\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u63d2\u56fe14\" \/><\/p>\n<p>slide.jpeg<\/p>\n<h4>\u529f\u80fd\uff1a<\/h4>\n<p>\u80fd\u591f\u8ba1\u7b97\u91cc\u7a0b\u3001\u65f6\u95f4\u3001\u5b9e\u65f6\u83b7\u53d6\u8dd1\u6b65\u8def\u5f84\uff08\u6709\u4e9b\u7c97\u7cd9\uff09<\/p>\n<h4>\u601d\u8def\uff1a<\/h4>\n<p>\u4e3b\u8981\u4f7f\u7528\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u83b7\u53d6\u4f4d\u7f6eAPIwx.getLocation()\u548c\u5730\u56fe\u7ec4\u4ef6map\u3002<br \/>\u9996\u5148\u5b9e\u73b0\u4e00\u4e2a\u8ba1\u65f6\u5668\u8fdb\u884c \u8ba1\u65f6\uff0c\u901a\u8fc7wx.getLocation()\u83b7\u53d6\u5750\u6807\uff0c\u628a\u83b7\u53d6\u5230\u7684\u5750\u6807\u5b58\u5728\u4e00\u4e2a\u4e2d\uff0c\u901a\u8fc7\u5750\u6807\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u83b7\u53d6\u91cc\u7a0b\uff0c\u8fdb\u884c\u7d2f\u52a0\u5f97\u5230\u603b\u91cc\u7a0b\uff0c\u540c\u65f6\u4e5f\u901a\u8fc7\u5750\u6807\u70b9\u8fdb\u884c\u8fde\u7ebf<br \/>\u5b58\u5728\u7684\u95ee\u9898\uff1a<br \/>1\u3001\u56e0\u4e3a\u76ee\u524d\u627e\u4e0d\u5230\u5728\u5730\u56fe\u4e0a\u753b\u8fde\u7ebf\u7684\u65b9\u6cd5\uff0c\u6240\u4ee5\u91c7\u7528\u4e86\u5728\u5730\u56fe\u4e0a\u8d34\u5c0f\u7ea2\u70b9\u56fe\u7684\u65b9\u6cd5\u663e\u793a\u5927\u6982\u8dd1\u6b65\u8def\u5f84\uff0c\u8def\u5f84\u6bd4\u8f83\u7c97\u7cd9\u3002<br \/>2\u3001\u867d\u7136\u91c7\u7528\u4e86API\u91cc\u9762\u7684\u706b\u661f\u5750\u6807gcj02\u7c7b\u578b\uff0c\u4f46\u662f\u83b7\u53d6\u7684\u5750\u6807\u8ddf\u56fd\u9645\u5750\u6807\u5dee\u4e0d\u591a\uff0c\u4f9d\u7136\u5b58\u5728\u7740\u504f\u5dee\u3002<\/p>\n<h4>\u6838\u5fc3\u4ee3\u7801\uff1a<\/h4>\n<p>\u6211\u628a\u5168\u90e8\u4ee3\u7801\u653e\u5728github\u4e0a-weChatApp-Run\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6765\u770b\u770b\u6216\u8005\u5148star\u6536\u85cf\uff0c\u6211\u4ee5\u540e\u8fd8\u4f1a\u8fdb\u884c\u4e00\u4e9b\u4f18\u5316\u66f4\u65b0\u3002\u73b0\u5728\u53ea\u662f\u4e00\u4e2a\u5b66\u4e60Demo\uff0c\u5927\u5bb6\u6c9f\u901a\u5b66\u4e60\uff0c\u5b9e\u9645\u5e94\u7528\u8fd8\u9700\u66f4\u591a\u4f18\u5316\u3002<\/p>\n<p>wxml\u6587\u4ef6\u5e03\u5c40\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;view&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;image&gt;&lt;\/image&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;button&gt;\u6253\u5f00\u4f4d\u7f6e&lt;\/button&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;button&gt;\u5f00\u59cb\u8dd1\u6b65&lt;\/button&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;button&gt;\u6682\u505c\u8dd1\u6b65&lt;\/button&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;text&gt;\\n\u91cc\u7a0b\u6570\uff1a{{meters}}km&lt;\/text&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;text&gt;\\n\\n\u65f6\u95f4\uff1a{{time}}&lt;\/text&gt;&lt;\/view&gt;&lt;view&gt;\r\n&nbsp;&nbsp;&nbsp;&lt;map&gt;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/map&gt;&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>js\u6587\u4ef6\u903b\u8f91\u4ee3\u7801\uff1a<\/p>\n<pre>var&nbsp;countTooGetLocation&nbsp;=&nbsp;0;\r\nvar&nbsp;total_micro_second&nbsp;=&nbsp;0;\r\nvar&nbsp;starRun&nbsp;=&nbsp;0;\r\nvar&nbsp;totalSecond&nbsp;&nbsp;=&nbsp;0;\r\nvar&nbsp;oriMeters&nbsp;=&nbsp;0.0;\r\n\/*&nbsp;\u6beb\u79d2\u7ea7\u5012\u8ba1\u65f6&nbsp;*\/\r\nfunction&nbsp;count_down(that)&nbsp;{\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(starRun&nbsp;==&nbsp;0)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(countTooGetLocation&nbsp;&amp;gt;=&nbsp;100)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;time&nbsp;=&nbsp;date_format(total_micro_second);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.updateTime(time);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(countTooGetLocation&nbsp;&amp;gt;=&nbsp;5000)&nbsp;{&nbsp;\/\/1000\u4e3a1s\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that.getLocation();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;countTooGetLocation&nbsp;=&nbsp;0;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;\r\n\r\n\r\n&nbsp;setTimeout\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function(){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;countTooGetLocation&nbsp;+=&nbsp;10;\r\n&nbsp;&nbsp;&nbsp;&nbsp;total_micro_second&nbsp;+=&nbsp;10;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;count_down(that);\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;,10\r\n&nbsp;&nbsp;&nbsp;&nbsp;)\r\n}\r\n\r\n\r\n\/\/&nbsp;\u65f6\u95f4\u683c\u5f0f\u5316\u8f93\u51fa\uff0c\u598203:25:19&nbsp;86\u3002\u6bcf10ms\u90fd\u4f1a\u8c03\u7528\u4e00\u6b21\r\nfunction&nbsp;date_format(micro_second)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u79d2\u6570\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;second&nbsp;=&nbsp;Math.floor(micro_second&nbsp;\/&nbsp;1000);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5c0f\u65f6\u4f4d\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;hr&nbsp;=&nbsp;Math.floor(second&nbsp;\/&nbsp;3600);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5206\u949f\u4f4d\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;min&nbsp;=&nbsp;fill_zero_prefix(Math.floor((second&nbsp;-&nbsp;hr&nbsp;*&nbsp;3600)&nbsp;\/&nbsp;60));\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u79d2\u4f4d\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sec&nbsp;=&nbsp;fill_zero_prefix((second&nbsp;-&nbsp;hr&nbsp;*&nbsp;3600&nbsp;-&nbsp;min&nbsp;*&nbsp;60));\/\/&nbsp;equal&nbsp;to&nbsp;=&amp;gt;&nbsp;var&nbsp;sec&nbsp;=&nbsp;second&nbsp;%&nbsp;60;\r\n\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hr&nbsp;+&nbsp;\":\"&nbsp;+&nbsp;min&nbsp;+&nbsp;\":\"&nbsp;+&nbsp;sec&nbsp;+&nbsp;\"&nbsp;\";\r\n}\r\n\r\n\r\nfunction&nbsp;getDistance(lat1,&nbsp;lng1,&nbsp;lat2,&nbsp;lng2)&nbsp;{&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;dis&nbsp;=&nbsp;0;\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;radLat1&nbsp;=&nbsp;toRadians(lat1);\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;radLat2&nbsp;=&nbsp;toRadians(lat2);\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;deltaLat&nbsp;=&nbsp;radLat1&nbsp;-&nbsp;radLat2;\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;deltaLng&nbsp;=&nbsp;toRadians(lng1)&nbsp;-&nbsp;toRadians(lng2);\r\n&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;dis&nbsp;=&nbsp;2&nbsp;*&nbsp;Math.asin(Math.sqrt(Math.pow(Math.sin(deltaLat&nbsp;\/&nbsp;2),&nbsp;2)&nbsp;+&nbsp;Math.cos(radLat1)&nbsp;*&nbsp;Math.cos(radLat2)&nbsp;*&nbsp;Math.pow(Math.sin(deltaLng&nbsp;\/&nbsp;2),&nbsp;2)));\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;dis&nbsp;*&nbsp;6378137;\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;toRadians(d)&nbsp;{&nbsp;&nbsp;return&nbsp;d&nbsp;*&nbsp;Math.PI&nbsp;\/&nbsp;180;}\r\n}&nbsp;\r\n\r\nfunction&nbsp;fill_zero_prefix(num)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;num&nbsp;&lt;h3&gt;\u4e94\u3001\u540e\u8bed&lt;\/h3&gt;&lt;p&gt;\u672c\u6587\u662f\u4e00\u4e2a\u5feb\u901f\u4e0a\u624b\u5f00\u53d1\u7684\u4ecb\u7ecd\uff0c\u7ec6\u8282\u4ecb\u7ecd\u53ef\u4ee5\u67e5\u770b\u5b98\u65b9\u6587\u6863&lt;br&gt;&lt;\/p&gt;&lt;p&gt;\u3010\u76f8\u5173\u63a8\u8350\u3011&lt;\/p&gt;&lt;p&gt;1. &lt;a href=\"http:\/\/www.php.cn\/xiazai\/code\/weixin\" target=\"_self\"&gt;\u5fae\u4fe1\u516c\u4f17\u53f7\u5e73\u53f0\u6e90\u7801\u4e0b\u8f7d&lt;\/a&gt;&lt;\/p&gt;&lt;p&gt;2.&nbsp;&lt;a href=\"http:\/\/www.php.cn\/xiazai\/code\/739\" target=\"_self\"&gt;\u5c0f\u732acms(PigCms)\u5fae\u7535\u5546\u7cfb\u7edf\u8fd0\u8425\u7248\uff08\u72ec\u7acb\u5fae\u5e97\u5546\u57ce+\u4e09\u7ea7\u5206\u9500\u7cfb\u7edf\uff09&lt;\/a&gt;&lt;\/p&gt;&lt;p&gt;3.&nbsp;&lt;a href=\"http:\/\/www.php.cn\/xiazai\/code\/600\" target=\"_self\"&gt;\u5fae\u4fe1\u4eba\u8109\u738bv3.4.5\u9ad8\u7ea7\u5546\u4e1a\u7248 \u5fae\u4fe1\u9b54\u65b9\u6e90\u7801&lt;\/a&gt;&lt;\/p&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u5f00\u53d1\u4e4b\u5236\u4f5c\u4e00\u4e2a\u8dd1\u6b65\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\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>\u524d\u8a00 \u6211\u5df2\u7ecf\u628a\u5168\u90e8\u4ee3\u7801\u653e\u5728github\u4e0a-weChatApp-Run\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6765\u770b\u770b\u6216\u8005\u5148star\u6536\u85cf\uff0c\u6211\u4ee5\u540e\u8fd8\u4f1a\u8fdb\u884c\u4e00\u4e9b\u4f18\u5316\u3002\u73b0\u5728\u53ea\u662f\u4e00\u4e2a\u5b66\u4e60Demo\uff0c\u5927\u5bb6\u6c9f\u901a\u5b66\u4e60\uff0c\u5b9e\u9645\u5e94\u7528\u8fd8\u9700\u66f4\u591a\u4f18\u5316\u3002 \u6b63\u6587 \u4e00\u3001\u51c6\u5907\u5de5\u4f5c 1\u3001\u6ce8\u518c\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u8d26\u53f7\uff0c\u5f97\u7528\u4e00\u4e2a\u6ca1\u6ce8\u518c\u8fc7\u516c\u4f17\u53f7\u7684\u90ae\u7bb1\u6ce8\u518c\u30022\u3001\u6ce8\u518c\u8fc7\u7a0b\u4e2d\u9700\u8981\u5f88\u591a\u8ba4\u8bc1\uff0c\u6709\u5f88\u591a\u8ba4\u8bc1\uff0c\u6bd4\u8f83\u7e41\u7410\uff0c\u5982\u679c\u6682\u65f6\u53ea\u662f\u5f00\u53d1\u6d4b\u8bd5\uff0c\u4e0d\u8fdb\u884c\u63d0\u5ba1\u3001\u53d1\u5e03\u7684\u8bdd\uff0c\u53ea\u8981\u5b8c\u6210\u8425\u4e1a\u6267\u7167\u53f7\u586b\u5199\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u9700\u8981\u5b8c\u6210\u5fae\u4fe1\u8ba4\u8bc1\u30023\u3001\u6ce8\u518c\u5b8c\u8d26\u53f7\uff0c\u767b\u5f55\uff0c\u5728\u4e3b\u9875\u9762\u5de6\u8fb9\u5217\u8868\u4e2d\u70b9\u51fb\u8bbe\u7f6e\uff0c\u7136\u540e\u518d\u8bbe\u7f6e\u9875\u9762\u4e2d\u9009\u5f00\u53d1\u8bbe\u7f6e\u5c31\u53ef\u4ee5\u770b\u5230AppID\uff0c\u7528\u4e8e\u767b\u5f55\u5f00\u53d1\u5de5\u5177\u3002 \u4e3b\u9875\u9762 \u8bbe\u7f6e\u9875\u9762 \u4e8c\u3001\u5f00\u53d1\u5de5\u5177 \u53ef\u4ee5\u5230\u5b98\u7f51\u4e0b\u8f7d\u5f00\u53d1\u5de5\u5177\u4e0b\u8f7d \u5f00\u53d1\u5de5\u5177 \u5f00\u53d1\u5de5\u5177\u7f16\u8f91\u9875\u9762 \u4e09\u3001\u5f00\u59cb\u9879\u76ee \u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u9009\u62e9\u5c0f\u7a0b\u5e8f\u9009\u9879\uff0c\u5230\u8fbe\u6dfb\u52a0\u9879\u76ee\u9875\u9762 \u6dfb\u52a0\u9879\u76ee \u8fd9\u4e2a\u65f6\u5019\u5728\u524d\u9762\u8bbe\u7f6e\u9875\u9762\u7684AppId\u5c31\u7528\u5230\u4e86\u3002 \u5982\u679c\u9879\u76ee\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u662f\u4e2a\u7a7a\u6587\u4ef6\u5939\uff0c\u4f1a\u63d0\u793a\u662f\u5426\u521b\u5efaquick start \u9879\u76ee\u3002\u9009\u62e9\u201c\u662f\u201d\uff0c\u5f00\u53d1\u8005\u5de5\u5177\u4f1a\u5e2e\u52a9\u6211\u4eec\u5728\u5f00\u53d1\u76ee\u5f55\u91cc\u751f\u6210\u4e00\u4e2a\u7b80\u5355\u7684 demo\u3002\u8fd9\u4e2aDemo\u62e5\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u5c0f\u7a0b\u5e8f\u7684\u5927\u6982\u6846\u67b6\u3002 1\u3001\u6846\u67b6 \u5148\u770b\u4e0b\u4e00\u76ee\u5f55\uff1a \u6587\u4ef6\u76ee\u5f55.png app.js: \u5c0f\u7a0b\u5e8f\u903b\u8f91\uff0c\u751f\u547d\u5468\u671f\uff0c\uff0c\u5168\u5c40\u53d8\u91cfapp.json: \u5c0f\u7a0b\u5e8f\u516c\u5171\u8bbe\u7f6e\uff0c\u5bfc\u822a\u680f\u989c\u8272\u7b49\uff0c\u4e0d\u53ef\u4ee5\u6ce8\u91caapp.wxss :\u5c0f\u7a0b\u5e8f\u516c\u5171\u6837\u5f0f\uff0c\u7c7bCSS \u3002 \u5c0f\u7a0b\u5e8f\u9875\u9762\u6784\u6210\uff1a \u9875\u9762\u6784\u6210 \u6bcf\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9875\u9762\u662f\u7531\u540c\u8def\u5f84\u4e0b\u540c\u540d\u7684\u56db\u4e2a\u4e0d\u540c\u540e\u7f00\u6587\u4ef6\u7684\u7ec4\u6210\uff0c\u5982\uff1aindex.js\u3001index.wxml\u3001index.wxss\u3001index.json\u3002 \u845b\u6587\u4f73\u4ecb\u7ecd \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u6bcf\u4e00\u4e2a\u9875\u9762\u7684\u3010\u8def\u5f84+\u9875\u9762\u540d\u3011\u90fd\u9700\u8981\u5199\u5728 app.json \u7684 pages \u4e2d\uff0c\u4e14 pages \u4e2d\u7684\u7b2c\u4e00\u4e2a\u9875\u9762\u662f\u5c0f\u7a0b\u5e8f\u7684\u9996\u9875\u3002 \u8def\u5f84 \u8fd9\u56db\u4e2a\u6587\u4ef6\u6309\u7167\u529f\u80fd\u53ef\u4ee5\u5206\u6210\u4e09\u4e2a\u90e8\u5206\uff1a \u914d\u7f6e\uff1ajson \u6587\u4ef6\u903b\u8f91\u5c42\uff1ajs\u6587\u4ef6\u89c6\u56fe\u5c42\uff1awxss.wxml\u6587\u4ef6 \u5728 iOS \u4e0a\uff0c\u5c0f\u7a0b\u5e8f\u7684 \u4ee3\u7801\u662f\u8fd0\u884c\u5728 JavaScriptCore \u4e2d\u5728 \u4e0a\uff0c\u5c0f\u7a0b\u5e8f\u7684 javascript \u4ee3\u7801\u662f\u901a\u8fc7 X5 \u5185\u6838\u6765\u89e3\u6790\u5728 \u5f00\u53d1\u5de5\u5177\u4e0a\uff0c \u5c0f\u7a0b\u5e8f\u7684 [&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-30256","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30256","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=30256"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30256\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}