{"id":29245,"date":"2024-11-25T15:50:07","date_gmt":"2024-11-25T07:50:07","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29245\/"},"modified":"2024-11-25T15:50:07","modified_gmt":"2024-11-25T07:50:07","slug":"%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e4%b9%8b%e6%b3%a8%e5%86%8c%e5%92%8c%e9%a2%84%e8%a7%88%e5%b0%8f%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29245\/","title":{"rendered":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3"},"content":{"rendered":"<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u672c\u6559\u7a0b\u65e8\u5728\u4e3a\u60f3\u5b66\u4e60\u5c0f\u7a0b\u5e8f\u7684\u540c\u5b66\u63d0\u4f9b\u4e00\u4e2a\u5feb\u901f\u4e0a\u624b\u7684\u6559\u7a0b\uff0c\u5982\u679c\u4f60\u4e4b\u524d\u63a5\u89e6\u8fc7react.js\u6216\u8005vue.js\u4e4b\u7c7b\u7684\u524d\u7aef\u6846\u67b6\uff0c\u76f8\u4fe1\u4f60\u5f88\u5feb\u5c31\u80fd\u5b66\u4f1a\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u3002\u5982\u679c\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c\u4e5f\u4e0d\u8981\u6709\u754f\u96be\u5fc3\u7406\uff0c\u672c\u6559\u7a0b\u4e3b\u8981\u9762\u5411\u7684\u5c31\u662f\u521d\u5b66\u8005\uff0c\u6240\u4ee5\u4f1a\u5c3d\u91cf\u5199\u7684\u8be6\u7ec6\u4e00\u70b9\u3002\u76f8\u4fe1\u8ddf\u6211\u4e00\u8d77\u8d70\u5b8c\u6559\u7a0b\uff0c\u4e00\u5b9a\u53ef\u4ee5\u5b66\u4f1a\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u3002<\/span> \u672c\u6559\u7a0b\u5206\u4e3a\u4e09\u4e2a\u90e8\u5206\uff1a<br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u7b2c\u4e00\u90e8\u5206\uff1a\u7406\u8bba\u7bc7<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u90e8\u5206\u4ecb\u7ecd\u6240\u6d89\u53ca\u5230\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u8ba9\u4f60\u5bf9\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u6709\u4e00\u4e2a\u6574\u4f53\u7684\u6982\u5ff5\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u7b2c\u4e8c\u90e8\u5206\uff1a\u5b9e\u6218\u7bc7<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5c06\u5e26\u9886\u8bfb\u8005\u670b\u53cb\u4eec\u548c\u6211\u4e00\u8d77\u5f00\u53d1\u4e00\u4e2a\u771f\u6b63\u7684\u5c0f\u7a0b\u5e8f\uff0c\u548c\u6211\u4e00\u8d77\u4eab\u53d7\u7f16\u7a0b\u7684\u4e50\u8da3\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u7b2c\u4e09\u90e8\u5206\uff1a\u9644\u5f55<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u4e00\u4e9b\u989d\u5916\u7684\u5185\u5bb9\u5c06\u5728\u9644\u5f55\u4e2d\u8bf4\u660e\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4f60\u6709\u4efb\u4f55\u7591\u60d1\uff0c\u8bf7\u5173\u6ce8\u6211\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u76f4\u63a5\u63d0\u95ee\u5373\u53ef\u3002<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u642d\u5efa\u5f00\u53d1\u73af\u5883<\/span><\/span><\/p>\n<ul>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u4e0b\u8f7d\u6700\u65b0\u7248\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177:&nbsp;<\/span>  <\/li>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9009\u62e9\u9002\u5408\u4f60\u7cfb\u7edf\u7684\u7248\u672c\u8fdb\u884c\u5b89\u88c5\uff0c\u76ee\u524d\u652f\u6301windows32,windows64\u4ee5\u53camac\u7cfb\u7edf<\/span> <\/li>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u6253\u5f00\u5fae\u4fe1web\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u7136\u540e\u7528\u624b\u673a\u5fae\u4fe1\u626b\u7801\u767b\u9646\u3002<\/span> <\/li>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9009\u62e9\u6dfb\u52a0\u9879\u76ee\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u8981\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u5c0f\u7a0b\u5e8f\u9879\u76ee\u9700\u8981\u586b\u5199\u4e09\u90e8\u5206\u5185\u5bb9\uff1aAppID\uff0c\u9879\u76ee\u540d\u79f0\uff0c\u9879\u76ee\u76ee\u5f55\u3002<\/span> <\/li>\n<\/ul>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5728\u8fd9\u91cc\uff0c\u4e3a\u4e86\u80fd\u5feb\u901f\u5f00\u53d1\uff0c\u6211\u4eec\u5148\u9009\u62e9 \u65e0AppID \u8fd9\u4e2a\u9009\u9879\uff0c\u66f4\u591a\u6709\u5173AppID\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u5230\u9644\u5f55\u4e2d\u67e5\u770b\u3002\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9879\u76ee\u540d\u79f0\uff0c\u5c31\u662f\u4f60\u7ed9\u4f60\u7684\u9879\u76ee\u53d6\u4e00\u4e2a\u540d\u5b57\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9879\u76ee\u76ee\u5f55\uff0c\u662f\u6307\u4f60\u7684\u5c0f\u7a0b\u5e8f\u7684\u4ee3\u7801\u5c06\u653e\u5728\u54ea\u4e2a\u76ee\u5f55\u4e0b\uff0c\u4f60\u53ef\u4ee5\u81ea\u5df1\u5728\u672c\u5730\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u4e5f\u53ef\u4ee5\u5728github\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u90fd\u53ef\u4ee5\u3002\u5728\u8fd9\u91cc\u4e3a\u4e86\u7b80\u5355\uff0c\u6211\u76f4\u63a5\u5728\u684c\u9762\u65b0\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\u5939\u3002<\/span> <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/230\/969\/620\/1490084974447583.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe\" \/><\/p>\n<blockquote style=\"font-family:\"><p>\n <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u6ce8\u610f\uff0c\u586b\u597d\u4fe1\u606f\u4e4b\u540e\uff0c\u5de5\u5177\u4f1a\u9ed8\u8ba4\u52fe\u9009 \u5728\u5f53\u524d\u76ee\u5f55\u4e2d\u521b\u5efaquick start\u9879\u76ee \u8fd9\u4e2a\u9009\u9879\uff0c\u6211\u4eec\u4f7f\u7528\u9ed8\u8ba4\u7684\u5c31\u597d\uff0c\u4e0d\u9700\u6539\u52a8\u3002<\/span>\n<\/p><\/blockquote>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u5355\u51fb\u6dfb\u52a0\u9879\u76ee\u540e\uff0c\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u4e0b\u9762\u8fd9\u5f20\u56fe\u6240\u793a\u7684\u5185\u5bb9\u3002<\/span> <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/901\/236\/831\/1490084992138160.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe1\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe1\" \/><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u81f3\u6b64\uff0c\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u7684\u73af\u5883\u5df2\u7ecf\u642d\u5efa\u5b8c\u6210\uff0c\u672c\u8282\u5185\u5bb9\u4e5f\u5230\u6b64\u7ed3\u675f\uff0c\u4e0b\u8282\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6e\u5c0f\u7a0b\u5e8f\uff01<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u914d\u7f6e\u5c0f\u7a0b\u5e8f<\/span><\/span><\/p>\n<p style=\"font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u4e00\u8282\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5c0f\u7a0b\u5e8f\u7684\u914d\u7f6e\u3002\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b\u9879\u76ee\u81ea\u52a8\u751f\u6210\u7684app.json\u6587\u4ef6\u957f\u4ec0\u4e48\u6837\u5b50\u3002<\/span><\/p>\n<p style=\"font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\"><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5176\u5b9e\u8fd9\u91cc\uff0c\u5171\u6709\u4e94\u4e2a\u90e8\u5206\u53ef\u4ee5\u914d\u7f6e\uff0c\u5206\u522b\u662fpages, window, tarBar, networkTimeout\u548cdebug<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">pages\uff1a\u5b9a\u4e49\u7684\u662f\u8fd9\u4e2a\u5c0f\u7a0b\u5e8f\u7531\u54ea\u4e9b\u9875\u9762\u7ec4\u6210\u3002<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5728\u4ee5\u540e\u9700\u8981\u65b0\u589e\u6216\u8005\u51cf\u5c11\u9875\u9762\u65f6\uff0c\u90fd\u9700\u8981\u5728\u8fd9\u91cc\u8fdb\u884c\u8bbe\u7f6e\uff0c\u6709\u51e0\u4e2a\u9875\u9762pages\u6570\u7ec4\u5c31\u6709\u51e0\u9879\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u53ef\u4ee5\u770b\u5230pages\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u800c\u6570\u7ec4\u7684\u7b2c\u4e00\u9879\u5c31\u662f\u5c0f\u7a0b\u5e8f\u7684\u521d\u59cb\u9875\u9762\uff0c\u4f60\u53ef\u4ee5\u8bd5\u7740\u628a logs \u9875\u9762\u79fb\u52a8\u5230\u6700\u524d\u9762\u770b\u770b\u6548\u679c\uff0c\u8fd9\u5728\u5f00\u53d1\u7684\u65f6\u5019\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u5c0f\u6280\u5de7\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd8\u6709\u4e00\u4e2a\u6280\u5de7\u8981\u5206\u4eab\u7ed9\u4f60\u7684\u662f\uff0c\u5728\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u65b0\u9875\u9762\u7684\u65f6\u5019\uff0c\u6ca1\u5fc5\u8981\u50bb\u50bb\u7684\u624b\u52a8\u53bb\u521b\u5efa\u6587\u4ef6\u5939\uff0c\u7136\u540e\u65b0\u5efaxxx.josn, xxx.js, xxx.wxml, xxx.wxss\u8fd9\u56db\u4e2a\u6587\u4ef6\u3002\u6211\u4eec\u53ea\u8981\u5728 pages\u6570\u7ec4\u4e2d \u6dfb\u52a0\u4e00\u4e2a\u4f60\u60f3\u521b\u5efa\u7684\u9875\u9762\uff0c\u7136\u540e Ctrl + s \u4fdd\u5b58\u5373\u53ef\uff01\u662f\u4e0d\u662f\u5f88\u9177\uff1f<\/span> <\/p>\n<pre>{\r\n&nbsp;&nbsp;\"pages\":[\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"pages\/logs\/logs\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"pages\/index\/index\"\r\n&nbsp;&nbsp;],\r\n&nbsp;&nbsp;...\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"font-family:\"><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">window: \u5b9a\u4e49\u7684\u662f\u7a97\u53e3\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/span><\/span><span style=\"font-family:\">[td]<\/span><\/p>\n<p style=\"font-family:\"><span style=\"font-family:\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/288\/859\/278\/1490085071808049.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe2\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe2\" \/><\/span><\/p>\n<pre>{\r\n&nbsp;&nbsp;\"tabBar\":&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"backgroundColor\":&nbsp;\"#fbfbfb\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"borderStyle\":&nbsp;\"white\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"selectedColor\":\"#50e3c2\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"color\":&nbsp;\"#aaa\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"list\":&nbsp;[{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"pagePath\":&nbsp;\"pages\/index\/index\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"text\":&nbsp;\"\u9996\u9875\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"iconPath\":&nbsp;\"images\/home.png\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"selectedIconPath\":&nbsp;\"images\/homeHL.png\"\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"pagePath\":&nbsp;\"pages\/me\/me\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"text\":&nbsp;\"\u6211\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"iconPath\":&nbsp;\"images\/me.png\",\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"selectedIconPath\":&nbsp;\"images\/meHL.png\"\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}]\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\"><\/span><\/span><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">networkTimeout: \u7528\u6765\u8bbe\u7f6e\u5404\u79cd\u7f51\u7edc\u8bf7\u6c42\u7684\u8d85\u65f6\u65f6\u95f4\u3002<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5982\u679c\u4f60\u4e0d\u662f\u5f88\u6e05\u695a\u8fd9\u4e2anetworkTimeout\u914d\u7f6e\u6709\u4ec0\u4e48\u4f5c\u7528\uff0c\u90a3\u4e48\u5ffd\u7565\u5c31\u597d\u3002\u8fd9\u5bf9\u5b9e\u9645\u5f00\u53d1\u5e76\u6ca1\u6709\u4ec0\u4e48\u5f71\u54cd\u3002<\/span> <\/p>\n<p><span style=\"font-family:\">[td]<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/950\/601\/435\/1490085173235902.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe3\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe3\" \/><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">\u4ee5\u4e0b\u4ee3\u7801\u4ec5\u4e3a\u793a\u4f8b<\/span><\/p>\n<pre>{\r\n&nbsp;&nbsp;\"networkTimeout\":&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"request\":&nbsp;5000,\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"connectSocket\":&nbsp;5000,\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"uploadFile\":&nbsp;5000,\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"downloadFile\":&nbsp;5000\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;\"debug\":&nbsp;true\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\"><\/span><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">debug<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u53ef\u4ee5\u5728\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u5f00\u542f debug \u6a21\u5f0f\uff0c\u5728\u5f00\u53d1\u8005\u5de5\u5177\u7684\u63a7\u5236\u53f0\u9762\u677f\uff0c\u8c03\u8bd5\u4fe1\u606f\u4ee5 info\u7684\u5f62\u5f0f\u7ed9\u51fa\uff0c\u5176\u4fe1\u606f\u6709 Page \u7684\u6ce8\u518c\uff0c\u9875\u9762\u8def\u7531\uff0c\u6570\u636e\u66f4\u65b0\uff0c\u4e8b\u4ef6\u89e6\u53d1 \u3002 \u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u5b9a\u4f4d\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5982\u679c\u5f00\u542f debug \u6a21\u5f0f\u89c1\u4e0a\u9762\u4ee3\u7801<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u597d\u4e86\uff0c\u4e94\u4e2a\u90e8\u5206\u4ecb\u7ecd\u5b8c\u4e86\uff0c\u5e0c\u671b\u5404\u4f4d\u5728\u5b66\u4e60\u5b8c\u8fd9\u4e00\u8282\u540e\u53ef\u4ee5\u5c3d\u60c5\u63a2\u7d22\uff0c\u4fee\u6539\u5404\u79cd\u914d\u7f6e\u770b\u770b\u6548\u679c\uff0c\u6bd5\u7adf\u8fd9\u6837\u5370\u8c61\u4f1a\u66f4\u52a0\u6df1\u523b\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u4e0b\u4e00\u8282\u6211\u4eec\u5c06\u8bb2\u5230\u5c0f\u7a0b\u5e8f\u7684\u9879\u76ee\u7ed3\u6784\u3002<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9879\u76ee\u7ed3\u6784<\/span><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/896\/238\/741\/1490085203960152.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe4\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\u63d2\u56fe4\" \/><\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">pages<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u4e2a\u6587\u4ef6\u5939\u7528\u6765\u5b58\u653e\u5c0f\u7a0b\u5e8f\u7684\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u5176\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u5939\u5c31\u8868\u793a\u4e00\u4e2a\u9875\u9762\uff0c\u6bd4\u5982\uff0c\u8981\u5b9a\u4e49index\u7684\u9875\u9762\u5982\u4f55\u8868\u73b0\uff0c\u5c31\u5728index\u6587\u4ef6\u5939\u4e2d\u7684\u56db\u4e2a\u6587\u4ef6\u4e2d\u5b9a\u4e49\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u4e00\u4e2a\u9875\u9762\u7531\u56db\u4e2a\u6587\u4ef6\u7ec4\u6210\uff0c\u5206\u522b\u662f xxx.js, xxx.json, xxx.wxml, xxx.wxss<\/span> <\/p>\n<ul>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">xxx.js \u5c06\u5728\u4e0b\u5c0f\u8282\u8bb2\u5230\uff0c\u56e0\u4e3a\u8fd9\u91cc\u6d89\u53ca\u5230\u7684\u5185\u5bb9\u6bd4\u8f83\u591a\uff0c\u9700\u8981\u5355\u72ec\u5217\u51fa\u4e00\u8282\u6765\u8bb2\u3002<\/span> <\/li>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">xxx.json \u548c app.json \u7c7b\u4f3c\uff0capp.json\u662f\u6574\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u800cxxx.json\u662fxxx\u8fd9\u5355\u4e2a\u9875\u9762\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/span> <\/li>\n<\/ul>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u6bd4\u5982\uff0clogs.json \u6587\u4ef6\u5c31\u914d\u7f6e\u4e86logs\u8fd9\u4e2a\u9875\u9762\u7684 \u5bfc\u822a\u680f\u7684\u6807\u9898\uff5e<\/span> <\/p>\n<pre>{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\"navigationBarTitleText\":&nbsp;\"\u67e5\u770b\u542f\u52a8\u65e5\u5fd7\"\r\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<blockquote style=\"font-family:\"><p>\n <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u6ce8\u610f\uff1ajson \u6587\u4ef6\u4e2d\u4e0d\u80fd\u6709\u4efb\u4f55\u6ce8\u91ca\uff0c\u4e0d\u7136\u4f1a\u62a5\u9519\u3002<\/span>\n<\/p><\/blockquote>\n<ul>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">xxx.wxml \u53ef\u4ee5\u628a\u5b83\u770b\u4f5c\u662f html \u7684\u53d8\u79cd\uff0c\u540c\u6837\u662fxml\u7684\u8bed\u6cd5\u3002<\/span> <\/li>\n<li> <span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">xxx.wxss \u5219\u53ef\u4ee5\u770b\u6210\u662f css \u3002<\/span> <\/li>\n<\/ul>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u91cc\u9700\u8981\u7406\u89e3\u7684\u5c31\u662f\uff0c\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1 \u5176\u5b9e\u5c31\u662f\u7528\u5f00\u53d1\u7f51\u9875\u7684\u6280\u672f\u6765\u5f00\u53d1\uff0c\u8fd9\u5927\u5927\u8282\u7701\u4e86\u6211\u4eec\u524d\u7aef\u4eba\u5458\u7684\u5b66\u4e60\u6210\u672c\u3002\u4f46\u540c\u65f6\u4e5f\u8981\u6ce8\u610f\uff0c\u8fd9\u8d27\u5e76\u4e0d\u662fHTML5\uff0c\u867d\u7136\u5b83\u5f88\u50cf\uff0c\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u4f1a\u9047\u5230\u5f88\u591a\u5751\u3002<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">utils<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u7684utils.js\u4e3b\u8981\u7528\u6765\u5b9a\u4e49\u4e00\u4e9b\u516c\u7528\u7684\u51fd\u6570\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u91cc\u9762\u65b0\u5efa\u4e00\u4e2a api.js \u6587\u4ef6\u6765\u62bd\u8c61\u6211\u4eec\u670d\u52a1\u5668\u7684\u5730\u5740\u3002<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">app.js<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u90e8\u5206\u5185\u5bb9\u540c\u6837\u653e\u5728\u4e0b\u4e00\u8282\u4e00\u8d77\u8bb2\uff01<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">app.json<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u4e2a\u6587\u4ef6\u7684\u4f5c\u7528\u6211\u4eec\u5728\u4e0a\u4e00\u8282\u5df2\u7ecf\u8bb2\u8fc7\u4e86\uff0c\u662f\u6574\u4e2a\u5c0f\u7a0b\u5e8f\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">app.wxss<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u8fd9\u91cc\u5b9a\u4e49\u7684\u662f\u6574\u4e2a\u5c0f\u7a0b\u5e8f\u7684 \u6837\u5f0f\u8868<\/span> <\/p>\n<p><span style=\"font-weight: 700;font-family:\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u9875\u9762\u751f\u547d\u5468\u671f<\/span><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u7ec8\u4e8e\u5230\u4e86\u5c0f\u7a0b\u5e8f\u6700\u6838\u5fc3\uff0c\u6700\u5173\u952e\u7684\u90e8\u5206\u4e86\uff0c\u8fd9\u4e5f\u662f\u6211\u4eec\u7406\u8bba\u7bc7\u7684\u6700\u540e\u4e00\u8282\uff0c\u90a3\u4e48\u6211\u4eec\u5f00\u59cb\u5427\uff01<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">App() \u51fd\u6570\u7528\u6765\u6ce8\u518c\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u3002\u63a5\u53d7\u4e00\u4e2a object \u53c2\u6570\uff0c\u5176\u6307\u5b9a\u5c0f\u7a0b\u5e8f\u7684\u751f\u547d\u5468\u671f\u51fd\u6570\u7b49\u3002<\/span> <\/p>\n<pre>App({\r\n&nbsp;&nbsp;onLaunch:&nbsp;function()&nbsp;{&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;initial&nbsp;when&nbsp;launch.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onShow:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;show.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onHide:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;hide.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;globalData:&nbsp;'I&nbsp;am&nbsp;global&nbsp;data'\r\n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">Page() \u51fd\u6570\u7528\u6765\u6ce8\u518c\u4e00\u4e2a\u9875\u9762\u3002\u63a5\u53d7\u4e00\u4e2a object \u53c2\u6570\uff0c\u5176\u6307\u5b9a\u9875\u9762\u7684\u521d\u59cb\u6570\u636e\u3001\u751f\u547d\u5468\u671f\u51fd\u6570\u3001\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u7b49\u3002<\/span><\/p>\n<pre>Page({\r\n&nbsp;&nbsp;data:&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;text:&nbsp;\"This&nbsp;is&nbsp;page&nbsp;data.\"\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onLoad:&nbsp;function(options)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;some&nbsp;initialize&nbsp;when&nbsp;page&nbsp;load.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onReady:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;page&nbsp;ready.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onShow:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;page&nbsp;show.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onHide:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;page&nbsp;hide.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onUnload:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;page&nbsp;close.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onPullDownRefresh:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;pull&nbsp;down.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;onReachBottom:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Do&nbsp;something&nbsp;when&nbsp;page&nbsp;reach&nbsp;bottom.\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;\/\/&nbsp;Event&nbsp;handler.\r\n&nbsp;&nbsp;viewTap:&nbsp;function()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;this.setData({\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text:&nbsp;'Set&nbsp;some&nbsp;data&nbsp;for&nbsp;updating&nbsp;view.'\r\n&nbsp;&nbsp;&nbsp;&nbsp;})\r\n&nbsp;&nbsp;},\r\n&nbsp;&nbsp;customData:&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;hi:&nbsp;'MINA'\r\n&nbsp;&nbsp;}\r\n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\"><\/span><\/p>\n<p><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u6b64\u65f6\uff0c\u76f8\u4fe1\u4f60\u5bf9\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u7684\u7406\u8bba\u77e5\u8bc6\u5df2\u7ecf\u6709\u4e00\u5b9a\u4e86\u89e3\u4e86\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5982\u679c\u89c9\u5f97\u6bd4\u8f83\u6a21\u7cca\uff0c\u7b2c\u4e8c\u90e8\u5206\u7684\u5b9e\u6218\u7bc7\u5c31\u662f\u4e3a\u4e86\u8ba9\u6211\u4eec\u80fd\u591f\u7ed3\u5408\u7406\u8bba\u6765\u8fdb\u884c\u5b9e\u8df5\u3002<\/span><br \/>\n<span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1\">\u5982\u679c\u4f60\u6bd4\u8f83\u81ea\u4fe1\uff0c\u4f60\u4e5f\u53ef\u4ee5\u76f4\u63a5\u770b\u8fd9\u4e2a\u5b9e\u6218\u9879\u76ee\u7684\u6e90\u4ee3\u7801\u3002<\/span> <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u6ce8\u518c\u548c\u9884\u89c8\u5c0f\u7a0b\u5e8f\u8be6\u89e3\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>\u672c\u6559\u7a0b\u65e8\u5728\u4e3a\u60f3\u5b66\u4e60\u5c0f\u7a0b\u5e8f\u7684\u540c\u5b66\u63d0\u4f9b\u4e00\u4e2a\u5feb\u901f\u4e0a\u624b\u7684\u6559\u7a0b\uff0c\u5982\u679c\u4f60\u4e4b\u524d\u63a5\u89e6\u8fc7react.js\u6216\u8005vue.js\u4e4b\u7c7b\u7684\u524d\u7aef\u6846\u67b6\uff0c\u76f8\u4fe1\u4f60\u5f88\u5feb\u5c31\u80fd\u5b66\u4f1a\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u3002\u5982\u679c\u6ca1\u6709\u63a5\u89e6\u8fc7\uff0c\u4e5f\u4e0d\u8981\u6709\u754f\u96be\u5fc3\u7406\uff0c\u672c\u6559\u7a0b\u4e3b\u8981\u9762\u5411\u7684\u5c31\u662f\u521d\u5b66\u8005\uff0c\u6240\u4ee5\u4f1a\u5c3d\u91cf\u5199\u7684\u8be6\u7ec6\u4e00\u70b9\u3002\u76f8\u4fe1\u8ddf\u6211\u4e00\u8d77\u8d70\u5b8c\u6559\u7a0b\uff0c\u4e00\u5b9a\u53ef\u4ee5\u5b66\u4f1a\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u3002 \u672c\u6559\u7a0b\u5206\u4e3a\u4e09\u4e2a\u90e8\u5206\uff1a \u7b2c\u4e00\u90e8\u5206\uff1a\u7406\u8bba\u7bc7 \u8fd9\u90e8\u5206\u4ecb\u7ecd\u6240\u6d89\u53ca\u5230\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u8ba9\u4f60\u5bf9\u5c0f\u7a0b\u5e8f\u7684\u5f00\u53d1\u6709\u4e00\u4e2a\u6574\u4f53\u7684\u6982\u5ff5\u3002 \u7b2c\u4e8c\u90e8\u5206\uff1a\u5b9e\u6218\u7bc7 \u5c06\u5e26\u9886\u8bfb\u8005\u670b\u53cb\u4eec\u548c\u6211\u4e00\u8d77\u5f00\u53d1\u4e00\u4e2a\u771f\u6b63\u7684\u5c0f\u7a0b\u5e8f\uff0c\u548c\u6211\u4e00\u8d77\u4eab\u53d7\u7f16\u7a0b\u7684\u4e50\u8da3\u3002 \u7b2c\u4e09\u90e8\u5206\uff1a\u9644\u5f55 \u4e00\u4e9b\u989d\u5916\u7684\u5185\u5bb9\u5c06\u5728\u9644\u5f55\u4e2d\u8bf4\u660e\u3002 \u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4f60\u6709\u4efb\u4f55\u7591\u60d1\uff0c\u8bf7\u5173\u6ce8\u6211\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u76f4\u63a5\u63d0\u95ee\u5373\u53ef\u3002 \u642d\u5efa\u5f00\u53d1\u73af\u5883 \u4e0b\u8f7d\u6700\u65b0\u7248\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177:&nbsp; \u9009\u62e9\u9002\u5408\u4f60\u7cfb\u7edf\u7684\u7248\u672c\u8fdb\u884c\u5b89\u88c5\uff0c\u76ee\u524d\u652f\u6301windows32,windows64\u4ee5\u53camac\u7cfb\u7edf \u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u6253\u5f00\u5fae\u4fe1web\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u7136\u540e\u7528\u624b\u673a\u5fae\u4fe1\u626b\u7801\u767b\u9646\u3002 \u9009\u62e9\u6dfb\u52a0\u9879\u76ee\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u8981\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u5c0f\u7a0b\u5e8f\u9879\u76ee\u9700\u8981\u586b\u5199\u4e09\u90e8\u5206\u5185\u5bb9\uff1aAppID\uff0c\u9879\u76ee\u540d\u79f0\uff0c\u9879\u76ee\u76ee\u5f55\u3002 \u5728\u8fd9\u91cc\uff0c\u4e3a\u4e86\u80fd\u5feb\u901f\u5f00\u53d1\uff0c\u6211\u4eec\u5148\u9009\u62e9 \u65e0AppID \u8fd9\u4e2a\u9009\u9879\uff0c\u66f4\u591a\u6709\u5173AppID\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u5230\u9644\u5f55\u4e2d\u67e5\u770b\u3002\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\u3002 \u9879\u76ee\u540d\u79f0\uff0c\u5c31\u662f\u4f60\u7ed9\u4f60\u7684\u9879\u76ee\u53d6\u4e00\u4e2a\u540d\u5b57\u3002 \u9879\u76ee\u76ee\u5f55\uff0c\u662f\u6307\u4f60\u7684\u5c0f\u7a0b\u5e8f\u7684\u4ee3\u7801\u5c06\u653e\u5728\u54ea\u4e2a\u76ee\u5f55\u4e0b\uff0c\u4f60\u53ef\u4ee5\u81ea\u5df1\u5728\u672c\u5730\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u4e5f\u53ef\u4ee5\u5728github\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u90fd\u53ef\u4ee5\u3002\u5728\u8fd9\u91cc\u4e3a\u4e86\u7b80\u5355\uff0c\u6211\u76f4\u63a5\u5728\u684c\u9762\u65b0\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\u5939\u3002 \u6ce8\u610f\uff0c\u586b\u597d\u4fe1\u606f\u4e4b\u540e\uff0c\u5de5\u5177\u4f1a\u9ed8\u8ba4\u52fe\u9009 \u5728\u5f53\u524d\u76ee\u5f55\u4e2d\u521b\u5efaquick start\u9879\u76ee \u8fd9\u4e2a\u9009\u9879\uff0c\u6211\u4eec\u4f7f\u7528\u9ed8\u8ba4\u7684\u5c31\u597d\uff0c\u4e0d\u9700\u6539\u52a8\u3002 \u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u5355\u51fb\u6dfb\u52a0\u9879\u76ee\u540e\uff0c\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u4e0b\u9762\u8fd9\u5f20\u56fe\u6240\u793a\u7684\u5185\u5bb9\u3002 \u81f3\u6b64\uff0c\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u7684\u73af\u5883\u5df2\u7ecf\u642d\u5efa\u5b8c\u6210\uff0c\u672c\u8282\u5185\u5bb9\u4e5f\u5230\u6b64\u7ed3\u675f\uff0c\u4e0b\u8282\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6e\u5c0f\u7a0b\u5e8f\uff01 \u914d\u7f6e\u5c0f\u7a0b\u5e8f \u8fd9\u4e00\u8282\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5c0f\u7a0b\u5e8f\u7684\u914d\u7f6e\u3002\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b\u9879\u76ee\u81ea\u52a8\u751f\u6210\u7684app.json\u6587\u4ef6\u957f\u4ec0\u4e48\u6837\u5b50\u3002 \u5176\u5b9e\u8fd9\u91cc\uff0c\u5171\u6709\u4e94\u4e2a\u90e8\u5206\u53ef\u4ee5\u914d\u7f6e\uff0c\u5206\u522b\u662fpages, window, tarBar, networkTimeout\u548cdebug pages\uff1a\u5b9a\u4e49\u7684\u662f\u8fd9\u4e2a\u5c0f\u7a0b\u5e8f\u7531\u54ea\u4e9b\u9875\u9762\u7ec4\u6210\u3002 \u5728\u4ee5\u540e\u9700\u8981\u65b0\u589e\u6216\u8005\u51cf\u5c11\u9875\u9762\u65f6\uff0c\u90fd\u9700\u8981\u5728\u8fd9\u91cc\u8fdb\u884c\u8bbe\u7f6e\uff0c\u6709\u51e0\u4e2a\u9875\u9762pages\u6570\u7ec4\u5c31\u6709\u51e0\u9879\u3002 \u53ef\u4ee5\u770b\u5230pages\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u800c\u6570\u7ec4\u7684\u7b2c\u4e00\u9879\u5c31\u662f\u5c0f\u7a0b\u5e8f\u7684\u521d\u59cb\u9875\u9762\uff0c\u4f60\u53ef\u4ee5\u8bd5\u7740\u628a logs \u9875\u9762\u79fb\u52a8\u5230\u6700\u524d\u9762\u770b\u770b\u6548\u679c\uff0c\u8fd9\u5728\u5f00\u53d1\u7684\u65f6\u5019\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u5c0f\u6280\u5de7\u3002 \u8fd8\u6709\u4e00\u4e2a\u6280\u5de7\u8981\u5206\u4eab\u7ed9\u4f60\u7684\u662f\uff0c\u5728\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u65b0\u9875\u9762\u7684\u65f6\u5019\uff0c\u6ca1\u5fc5\u8981\u50bb\u50bb\u7684\u624b\u52a8\u53bb\u521b\u5efa\u6587\u4ef6\u5939\uff0c\u7136\u540e\u65b0\u5efaxxx.josn, xxx.js, xxx.wxml, xxx.wxss\u8fd9\u56db\u4e2a\u6587\u4ef6\u3002\u6211\u4eec\u53ea\u8981\u5728 pages\u6570\u7ec4\u4e2d \u6dfb\u52a0\u4e00\u4e2a\u4f60\u60f3\u521b\u5efa\u7684\u9875\u9762\uff0c\u7136\u540e Ctrl + s \u4fdd\u5b58\u5373\u53ef\uff01\u662f\u4e0d\u662f\u5f88\u9177\uff1f { &nbsp;&nbsp;&#8220;pages&#8221;:[ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8220;pages\/logs\/logs&#8221;, &nbsp;&nbsp;&nbsp;&nbsp;&#8220;pages\/index\/index&#8221; &nbsp;&nbsp;], &nbsp;&nbsp;&#8230; } \u767b\u5f55\u540e\u590d\u5236 window: [&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-29245","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29245","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=29245"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29245\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}