{"id":35476,"date":"2025-05-04T13:50:55","date_gmt":"2025-05-04T05:50:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35476.html"},"modified":"2025-05-04T13:50:55","modified_gmt":"2025-05-04T05:50:55","slug":"%e9%b8%bf%e8%92%99%e5%b8%b8%e8%a7%81%e9%9d%a2%e8%af%95%e9%a2%98%ef%bc%88%e6%ac%a2%e8%bf%8e%e6%8a%95%e7%a8%bf%e4%b8%80%e8%b5%b7%e5%ae%8c%e5%96%84%e6%8c%81%e7%bb%ad%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35476.html","title":{"rendered":"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09"},"content":{"rendered":"<h4 style=\"background-color:transparent\">1\u3001forEach\u4e0eLazyforEach\u00a0 \u00a0 \u957f\u5217\u8868\u4f18\u5316 LayForEach&#xff08;\u865a\u62df\u5217\u8868&#xff09;<\/h4>\n<p>ForEach\u00a0 \u5168\u91cf\u6e32\u67d3&#xff0c;\u6eda\u52a8\u7ed9\u89e6\u5e95\u52a0\u8f7d\u66f4\u591a\u65f6&#xff0c;\u6570\u636e\u91cf\u8d8a\u591a&#xff0c;\u5185\u5b58\u5360\u7528\u5c31\u8d8a\u5927\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#xff08;\u5217\u8868\u6570\u636e\u8f83\u5c11&#xff0c;\u6570\u636e\u4e00\u6b21\u6027\u5168\u91cf\u52a0\u8f7d\u4e0d\u662f\u6027\u80fd\u74f6\u9888\u65f6\u3002ForEach\u76f8\u5bf9LazyForEach&#xff0c;\u4ee3\u7801\u7b80\u5355\u5f88\u591a\u3002&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">LazyForEach \u00a0\u00a0\u6309\u53ef\u89c6\u533a\u57df\u6e32\u67d3&#xff0c;\u61d2\u52a0\u8f7d&#xff0c;\u6ca1\u770b\u5230\u7684\u5185\u5bb9\u4e0d\u52a0\u8f7d\u4e0d\u6e32\u67d3&#xff0c;\u957f\u5217\u8868\u6e32\u67d3\u3002&#xff08;\u5217\u8868\u6570\u636e\u8f83\u957f&#xff0c;\u4e00\u6b21\u6027\u52a0\u8f7d\u6240\u6709\u7684\u5217\u8868\u6570\u636e\u521b\u5efa\u3001\u6e32\u67d3\u9875\u9762\u4ea7\u751f\u6027\u80fd\u74f6\u9888\u65f6\u3002&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">LazyForEach \u9700\u8981\u51c6\u5907\u4e00\u4e2a IDataSource \u7c7b\u3002\u5176\u5b9e\u8fd9\u4e2a\u7c7b\u5c31\u662f\u628a\u6570\u7ec4\u7684\u589e\u5220\u67e5\u6539\u7528 IDataSource \u8fd9\u4e2a\u7c7b\u91cd\u65b0\u5b9e\u73b0\u4e00\u904d&#xff0c;\u540c\u65f6\u901a\u77e5 LazyForEach \u7ec4\u4ef6\u9700\u8981\u5bf9\u5e94\u7684\u66f4\u65b0\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">2\u3001\u4e24\u79cd\u8def\u7531\u65b9\u6848\u00a0 \u00a0 \u00a0(Navigation )\u00a0 \u00a0 \u00a0router&#xff1a;\u4e0d\u63a8\u8350<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\u00a0\u25cf \u7ec4\u4ef6\u5bfc\u822a (Navigation)(\u63a8\u8350)<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\u00a0\u25cf \u9875\u9762\u8def\u7531 (&#064;ohos.router)(\u4e0d\u63a8\u8350)<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u4e8c\u8005\u90fd\u53ef\u4ee5\u5b9e\u73b0\u9875\u9762\u8df3\u8f6c&#xff0c;\u9875\u9762\u4f20\u53c2&#xff0c;\u9875\u9762\u66ff\u6362\u3001\u9875\u9762\u8fd4\u56de\u7b49\u5e38\u89c4\u64cd\u4f5c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u66f4\u63a8\u8350\u7528 Navigation \u5f97\u65b9\u5f0f\u5b9e\u73b0\u8def\u7531\u7ba1\u7406&#xff0c;\u539f\u56e0&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">1. Navigation\u6ca1\u6709\u8def\u7531\u6570\u91cf\u9650\u5236&#xff0c;Router\u9650\u523632\u4e2a\u3002<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">2. Navigation \u652f\u6301\u4e00\u591a\u80fd\u529b&#xff0c;\u652f\u6301\u81ea\u9002\u5e94\u5355\u680f\u8ddf\u53cc\u680f\u663e\u793a\u3002<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">3. Navigation \u652f\u6301\u8def\u7531\u62e6\u622a\u548c\u5220\u9664\u6307\u5b9a\u9875\u9762\u3002\u6211\u4eec\u505a\u5361\u7247\u4e1a\u52a1\u65f6\u8fdb\u5165\u5e94\u7528\u7684\u573a\u666f&#xff0c;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u5982\u679c\u53cd\u590d\u70b9\u51fb\u540c\u4e00\u4e2a\u5361\u7247\u8fdb\u5165\u540c\u6837\u7684\u9875\u9762&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8def\u7531\u62e6\u622a\u5220\u9664\u91cd\u590d\u7684\u9875\u9762&#xff0c;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u786e\u4fdd\u6253\u5f00\u7684\u53ea\u6709\u4e00\u4e2a\u3002\u6bd4\u5982&#xff1a;\u7528\u6237\u767b\u5f55\u5931\u6548&#xff0c;\u5220\u9664\u6240\u6709\u9700\u8981\u7528\u6237\u8eab\u4efd\u6821\u9a8c\u7684\u9875\u9762\u3002<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">4. \u6a21\u6001\u5d4c\u5957\u8def\u7531 &#8211; Navigation\u53ef\u4ee5\u5d4c\u5957\u5728\u6a21\u6001\u5bf9\u8bdd\u6846\u4e2d&#xff0c;\u4e5f\u5c31\u662f\u8bf4\u53ef\u4ee5\u6a21\u6001\u6846\u4e2d<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u5b9a\u4e49\u8def\u7531&#xff0c;Router\u4e0d\u652f\u6301&#xff1b;&#xff08;\u5f97\u81ea\u5df1\u7814\u7a76\u4e00\u4e0b&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"350\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003d6b602.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"349\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003d95a7b.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"301\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003dbb83d.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"212\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003ddf0be.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">3\u3001\u4f60\u8ba4\u4e3aharmonyOS \u548copenHasrmony\u7684\u533a\u522b\u662f\u4ec0\u4e48&#xff1f;&#xff08;\u5f00\u6e90\u9e3f\u8499\u4e0e\u534e\u4e3a\u9e3f\u8499&#xff09;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">OPenHarmony \u5f00\u6e90\u9e3f\u8499&#8211;\u7cfb\u7edf\u5e95\u5ea7&#xff08;\u8bbe\u5907\u5f00\u53d1\u786c\u4ef6\u65b9\u9762&#8211;\u5e94\u7528\u5f00\u53d1\u8f6f\u4ef6\u65b9\u9762&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">HarmonyOS \u534e\u4e3a\u9e3f\u8499-\u5c31\u662f\u5728\u5f00\u6e90\u9e3f\u8499\u7684\u57fa\u7840\u4e0a&#xff0c;\u6dfb\u52a0\u534e\u4e3a\u5404\u79cd\u670d\u52a1&#xff1a;\u5982\u534e\u4e3a\u767b\u5f55&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u534e\u4e3a\u5730\u56fe\u3001\u534e\u4e3a\u5206\u4eab\u3002\u534e\u4e3a\u63a8\u9001\u7b49<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">4\u3001\u9e3f\u8499\u548c\u5b89\u5353 ios\u7684\u533a\u522b\u662f\u4ec0\u4e48&#xff1f;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">\u9e3f\u8499\u57284.0\u7248\u672c\u4e4b\u524d&#xff0c;\u652f\u6301apk\u5b89\u88c5\u3002\u5728\u8fd9\u4e4b\u540e\u5f0f\u4e0d\u652f\u6301\u5b89\u5353\u7684apk<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u9e3f\u8499\u540c\u65f6\u4e5f\u53c2\u8003\u5b89\u5353\u548cios\u8bb8\u591a\u4f18\u79c0\u7684\u8bbe\u8ba1&#xff0c;\u6bd4\u5982\u58f0\u660e\u5f0f\u7684UI\u5e03\u5c40&#xff0c;\u5b89\u5353\u7684compose<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u539f\u751f\u7ec4\u4ef6\u4e5f\u6709\u597d\u591a\u501f\u9274\u4e86IOS\u7ec4\u4ef6&#xff0c;\u6bd4\u5982\u6e32\u67d3 \u63a8\u9001\u673a\u5236&#xff0c;\u6743\u9650\u7ba1\u7406\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u8fd8\u6709\u4e00\u4e2a\u533a\u522b\u5c31\u662f\u6743\u9650\u9650\u5236&#xff0c; \u6211\u89c9\u5f97\u9e3f\u8499\u505a\u7684\u5f88\u597d&#xff0c;\u9690\u79c1\u7684\u5347\u7ea7&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u7167\u7247\u9690\u79c1&#xff0c;\u5e76\u4e0d\u662f\u8bbf\u95ee\u6574\u4e2a\u76f8\u518c&#xff0c;\u800c\u662f\u9009\u90a3\u4e2a\u53ea\u80fd\u770b\u90a3\u4e2a&#xff0c;\u5728\u4ee3\u7801\u7f16\u8bd1\u7684\u65f6\u5019<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u53ef\u4ee5\u901a\u8fc7picker\u5b9e\u73b0&#xff0c;\u65e0\u9700\u7533\u8bf7\u76f8\u7247\u6743\u9650\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">5\u3001\u9e3f\u8499\u4e00\u591a\u5f00\u53d1&#xff08;\u9875\u9762\u9002\u914d&#xff09;?<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">A:\u81ea\u9002\u5e94\u5e03\u5c40&#xff08;\u4e03\u79cd\u81ea\u9002\u5e94\u5e03\u5c40\u80fd\u529b&#xff09;&#xff1a;\u00a0\u62c9\u4f38\u3001\u5747\u5206\u3001\u5360\u6bd4\u3001\u7f29\u653e\u3001\u5ef6\u4f38\u3001\u9690\u85cf\u3001\u6298\u884c<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#xff08;\u6bd4\u5982\u624b\u673a\u4e0a\u662f\u641c\u7d22\u548c\u5206\u7c7b\u662f\u4e24\u884c\u7684 \u4f46\u5728\u5e73\u677f\u4e0a\u662f\u4e00\u884c\u7684&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u5360\u6bd4\u80fd\u529b&#xff1a;layoutWeight<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u62c9\u4f38&#xff1a;flex\u5e03\u5c40 &#8211;flexGrow\u3001flexShrink\u5c5e\u6027<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#xff08;\u62c9\u4f38&#xff1a;\u4f38\u7f29 \u00a0flexShrink\u7f29 \u00a0\u00a0\u00a0\u00a0flexGrow\u4f38 \u00a0\u00a0layoutWeight&#xff08;\u540c\u65f6\u4f38\u7f29&#xff09;&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u5ef6\u4f38&#xff1a;scroll\u3001grid\u3001list waterFlow<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#xff08;\u6ed1\u52a8\u80fd\u529b&#8211;\u6ce8\u610flist\u9ed8\u8ba4\u5782\u76f4\u65b9\u5411&#xff0c;\u5728list\u52a0\u4e00\u4e2a<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">.listDirection(Axis.Horizontal) \/\/\u53d8\u6210\u6c34\u5e73\u65b9\u5411 <\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">.lanes&#xff08;2&#xff09; \/\/\u4e24\u884c\u4ea4\u53c9\u8f74\u5217\u6570&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">(\u65b9\u6cd5\u4e8c scroll&#xff08;this.scroller&#xff09;{Row() \u00a0})<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u7f29\u653e\u80fd\u529b&#xff1a;aspectRatio\u5c5e\u6027<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#xff08;\u6bd4\u5982 width&#xff08;100&#xff09;aspectRatio&#xff08;1&#xff09;\u610f\u601d\u5bbd\/\u9ad8&#8212;\u7f51\u7edc\u56fe\u7247\u9700\u8981\u8bbe\u7f6e\u5bbd\u9ad8\u6bd4&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5747\u5206&#xff1a;row\u7ec4\u4ef6 \u00a0column flex\u7ec4\u4ef6\u7684justifyContent\u5c5e\u6027<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u9690\u85cf&#xff1a;displayPriority\u5c5e\u6027<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6298\u884c&#xff1a;Flex\u7ec4\u4ef6\u7684wrap\u5c5e\u6027\u8bbe\u7f6e\u4e3aFlexWrap.Wrap<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u54cd\u5e94\u5f0f\u5e03\u5c40&#xff08;\u5e03\u5c40\u53d8\u52a8\u8f83\u5927&#xff0c;\u65e0\u6cd5\u81ea\u9002\u5e94&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">(\u6bd4\u5982\u5728\u624b\u673a\u4e0atab\u9996\u9875 \u6211\u7684\u00a0\u5206\u7c7b\u00a0\u8d2d\u7269\u8f66\u5728\u5e95\u90e8&#8212;\u4f46\u662f\u5728\u5e73\u677f\u4e0atab\u5c31\u5728\u5de6\u8fb9 )<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u6bd4\u5982\u50cf\u662f\u65ad\u70b9 \u00a0\u5a92\u4f53\u67e5\u8be2 \u00a0\u00a0\u6805\u683c\u5e03\u5c40<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#4da8ee\">\u65ad\u70b9<\/span>&#8211;\u6211\u4eec\u81ea\u5df1\u5c01\u88c5\u4e00\u4e2a\u65ad\u70b9\u5de5\u5177\u7c7b&#xff0c;\u8ba9\u539f\u672c\u4e0d\u652f\u6301\u65ad\u70b9\u7684\u7ec4\u4ef6\u4e5f\u80fd\u6839<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u636e\u65ad\u70b9\u505a\u9002\u914d\u3002\u81ea\u5e26\u65ad\u70b9-xs&#xff08;\u624b\u8868&#xff09; sm &#xff08;\u624b\u673a&#xff09;md&#xff08;\u6298\u53e0\u5c4f\u5e55&#xff09;lg&#xff08;\u5e73\u677f \u4e09\u6298\u5c4f&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5a92\u4f53\u67e5\u8be2&#8211;\u6df1\u8272\u6a21\u5f0f&#xff0c;\u662f\u5426\u65cb\u8f6c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6805\u683c\u5e03\u5c40&#xff1a;\u6805\u683c\u7684\u6837\u5f0f\u7531Margin\u3001Gutter\u3001Columns\u4e09\u4e2a\u5c5e\u6027\u51b3\u5b9a\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\u529f\u80fd\u7ea7\u4e00\u591a&#xff1a; API\u9002\u914d -CanIUse\u3001try catch<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\u5de5\u7a0b\u7ea7\u4e00\u591a&#xff1a;\u4e09\u5c42\u5de5\u7a0b\u67b6\u6784-common fetaure product \u53ef\u9002\u5f53\u5c55\u5f00 \u00a0hap hsp har \u5305<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">6\u3001hap hsp har \u5305?<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">hap \u5e94\u7528\u7684\u529f\u80fd\u6a21\u5757&#xff0c;\u53ef\u4ee5\u72ec\u7acb\u5b89\u88c5\u548c\u8fd0\u884c\u3002\u5fc5\u987b\u5305\u542b\u4e00\u4e2aentry\u7c7b\u578b\u7684HAP&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u53ef\u9009\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2afeature\u7c7b\u578b\u7684hap\u3001<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">har \u9759\u6001\u5171\u4eab\u5305&#xff0c;\u7f16\u8bd1\u6001\u590d\u7528\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">hsp \u00a0\u52a8\u6001\u5171\u4eab\u5305&#xff0c;\u8fd0\u884c\u65f6\u590d\u7528\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"243\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055054-6817003e05aa4.png\" width=\"500\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">HAP&#xff1a;\u662f\u9e3f\u8499\u5e94\u7528\u7684\u6838\u5fc3\u90e8\u5206&#xff0c;\u5e94\u7528\u5b89\u88c5\u548c\u8fd0\u884c\u7684\u57fa\u672c\u5355\u5143\u3002\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660eabilities\u3001extensionAbilities\u7ec4\u4ef6&#xff0c;\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660epages\u9875\u9762\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">HAR&#xff1a;\u9759\u6001\u5171\u4eab\u5305\u3002\u7f16\u8bd1\u6001\u590d\u7528&#xff0c;\u4e0d\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660epages\u9875\u9762&#xff0c;\u652f\u6301Navigation\u7ec4\u4ef6\u5bfc\u822a\u3002\u00a0\u4e0d\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660eabilities\u3001extensionAbilities\u7ec4\u4ef6&#xff1b;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4e3b\u8981\u4f7f\u7528\u573a\u666f&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f5c\u4e3a\u4e8c\u65b9\u5e93&#xff0c;\u53d1\u5e03\u5230OHPM\u79c1\u4ed3&#xff0c;\u4f9b\u516c\u53f8\u5185\u90e8\u5176\u4ed6\u5e94\u7528\u4f9d\u8d56\u4f7f\u7528\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f5c\u4e3a\u4e09\u65b9\u5e93&#xff0c;\u53d1\u5e03\u5230OHPM\u4e2d\u5fc3\u4ed3&#xff0c;\u4f9b\u5176\u4ed6\u5e94\u7528\u4f9d\u8d56\u4f7f\u7528\u3002 axios<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">HSP&#xff1a;\u52a8\u6001\u5171\u4eab\u5305\u3002\u8fd0\u884c\u65f6\u590d\u7528&#xff0c;\u4e0d\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660eabilities\u3001extensionAbilities\u7ec4\u4ef6&#xff0c;\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u58f0\u660epages\u9875\u9762\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4e3b\u8981\u4f7f\u7528\u573a\u666f&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u591a\u6a21\u5757\u5171\u7528\u7684\u4ee3\u7801\u3001\u8d44\u6e90\u53ef\u4ee5\u4f7f\u7528HSP&#xff0c;\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u91cd\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5143\u670d\u52a1\u5206\u5305\u9884\u52a0\u8f7d\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">7\u3001LocalStorage&amp;AppStorage&amp;PeresistentStorage\u5206\u522b\u4ecb\u7ecd\u4e00\u4e0b&#xff1f;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">LocalStorage\u662f\u9875\u9762\u7ea7\u7684UI\u72b6\u6001\u5b58\u50a8&#xff0c;\u901a\u8fc7&#064;Entry\u88c5\u9970\u5668\u63a5\u6536\u7684\u53c2\u6570\u53ef\u4ee5\u5728\u9875\u9762\u5185\u5171\u4eab\u540c\u4e00\u4e2aLocalStorage\u5b9e\u4f8b\u3002LocalStorage\u4e5f\u53ef\u4ee5\u5728UIAbility\u5185&#xff0c;\u9875\u9762\u95f4\u5171\u4eab\u72b6\u6001\u3002LocalStorage\u662f\u4e00\u4e2a\u5c40\u90e8\u7684\u72b6\u6001\u7ba1\u7406\u5668\u3002\u5b83\u4fee\u9970\u7684\u53d8\u91cf\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d&#xff0c;\u662f\u975e\u6301\u4e45\u5316\u72b6\u6001&#xff0c;\u9000\u51fa\u5e94\u7528\u7a0b\u5e8f\u540e\u4f1a\u6d88\u5931\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u4e00\u4e2a\u5e94\u7528\u53ef\u80fd\u6709\u82e5\u5e72\u4e2aUIAbility&#xff0c;\u5982\u679c\u8981\u5728\u591a\u4e2aUIAbility\u5171\u4eab\u6570\u636e&#xff0c;\u5c31\u53ef\u4ee5\u4f7f\u7528AppStorage\u3002AppStorage\u662f\u4e00\u4e2a\u5168\u5c40\u7684\u72b6\u6001\u7ba1\u7406\u5668&#xff0c;\u5b83\u4fee\u9970\u7684\u53d8\u91cf\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d&#xff0c;\u662f\u975e\u6301\u4e45\u5316\u72b6\u6001&#xff0c;\u9000\u51fa\u5e94\u7528\u7a0b\u5e8f\u540e\u4f1a\u6d88\u5931\u3002\u5e94\u7528\u9000\u51fa\u518d\u6b21\u542f\u52a8\u540e&#xff0c;\u4f9d\u7136\u80fd\u4fdd\u5b58\u9009\u5b9a\u7684\u7ed3\u679c&#xff0c;\u662f\u5e94\u7528\u5f00\u53d1\u4e2d\u5341\u5206\u5e38\u89c1\u7684\u73b0\u8c61&#xff0c;\u8fd9\u5c31\u9700\u8981\u7528\u5230PersistentStorage\u3002\u5b83\u4fee\u9970\u7684\u53d8\u91cf\u4fdd\u5b58\u5728\u78c1\u76d8\u4e2d&#xff0c;\u662f\u6301\u4e45\u5316\u72b6\u6001&#xff0c;\u9000\u51fa\u5e94\u7528\u7a0b\u5e8f\u4f9d\u7136\u5b58\u5728\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">PersistentStorage\u662f\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u53ef\u9009\u5355\u5217\u5bf9\u8c61\u3002\u6b64\u5bf9\u8c61\u7684\u4f5c\u7528\u662f\u6301\u4e45\u5316\u5b58\u50a8\u9009\u5b9a\u7684AppStorage\u5c5e\u6027&#xff0c;\u4ee5\u786e\u4fdd\u8fd9\u4e9b\u5c5e\u6027\u5728\u5e94\u7528\u7a0b\u5e8f\u91cd\u65b0\u542f\u52a8\u65f6\u7684\u503c\u4e0e\u5e94\u7528\u7a0b\u5e8f\u5173\u95ed\u65f6\u7684\u503c\u76f8\u540c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">8\u3001\u9e3f\u8499\u4e2d&#xff0c;\u6709\u90a3\u4e9b\u5f39\u7a97\u7ec4\u4ef6&#xff1f;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">1.ToastDialog&#xff08;\u8f7b\u63d0\u793a\u6846&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u529f\u80fd\u548c\u7279\u70b9&#xff1a;\u7528\u4e8e\u5728\u5c4f\u5e55\u4e0a\u77ed\u6682\u663e\u793a\u63d0\u793a\u4fe1\u606f&#xff0c;\u4e0d\u4f1a\u6253\u65ad\u7528\u6237\u7684\u5f53\u524d\u64cd\u4f5c\u4f5c\u6d41\u7a0b\u3002\u5b83\u4f1a\u81ea\u52a8\u6d88\u5931&#xff0c;\u901a\u5e38\u7528\u4e8e\u663e\u793a\u4e00\u4e9b\u7b80\u5355\u7684\u901a\u77e5&#xff0c;\u5982\u64cd\u4f5c\u6210\u529f\u3001\u52a0\u8f7d\u5b8c\u6210\u7b49\u6d88\u606f\u3002<\/p>\n<p>ToastDialog toastDialog &#061; new ToastDialog(getContext());<br \/>\ntoastDialog.setText(&#034;\u64cd\u4f5c\u6210\u529f&#034;);<br \/>\ntoastDialog.show(); <\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d&#xff0c;getContext()\u662f\u83b7\u53d6\u4e0a\u4e0b\u6587\u73af\u5883\u7684\u65b9\u6cd5&#xff0c;\u7528\u4e8e\u6b63\u786e\u663e\u793a\u5bf9\u8bdd\u6846\u3002setText\u65b9\u6cd5\u7528\u4e8e\u8bbe\u7f6e\u63d0\u793a\u6846\u4e2d\u663e\u793a\u7684\u6587\u672c\u5185\u5bb9&#xff0c;show\u65b9\u6cd5\u5219\u662f\u5c06\u63d0\u793a\u6846\u663e\u793a\u5728\u5c4f\u5e55\u4e0a\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">2\u3001Dialog&#xff08;\u5bf9\u8bdd\u6846&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u529f\u80fd\u548c\u7279\u70b9&#xff1a;\u662f\u4e00\u4e2a\u53ef\u4ee5\u5305\u542b\u6807\u9898\u3001\u5185\u5bb9\u548c\u6309\u94ae\u7b49\u591a\u79cd\u5143\u7d20\u7684\u5f39\u7a97\u3002\u5b83\u4f1a\u4e2d\u65ad\u7528\u6237\u5f53\u524d\u7684\u64cd\u4f5c&#xff0c;\u76f4\u5230\u7528\u6237\u5bf9\u5bf9\u8bdd\u6846\u8fdb\u884c\u64cd\u4f5c&#xff08;\u5982\u70b9\u51fb\u6309\u94ae&#xff09;\u540e\u624d\u4f1a\u5173\u95ed\u3002\u53ef\u4ee5\u7528\u4e8e\u83b7\u53d6\u7528\u6237\u7684\u786e\u8ba4\u3001\u8f93\u5165\u4fe1\u606f\u7b49\u591a\u79cd\u573a\u666f\u3002<\/p>\n<p>Dialog dialog &#061; new Dialog(getContext());<br \/>\n\/\/ \u8bbe\u7f6e\u5bf9\u8bdd\u6846\u7684\u5e03\u5c40<br \/>\nDirectionalLayout layout &#061; new DirectionalLayout(getContext());<br \/>\nText text &#061; new Text(getContext());<br \/>\ntext.setText(&#034;\u8fd9\u662f\u5bf9\u8bdd\u6846\u7684\u5185\u5bb9&#034;);<br \/>\nlayout.addComponent(text);<br \/>\ndialog.setContentArea(layout);<br \/>\nButton button &#061; new Button(getContext());<br \/>\nbutton.setText(&#034;\u786e\u5b9a&#034;);<br \/>\nbutton.setClickedListener(component -&gt; dialog.close());<br \/>\nlayout.addComponent(button);<br \/>\ndialog.show(); <\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">3.PopupWindow(\u5f39\u51fa\u5f0f\u7a97\u53e3)<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u529f\u80fd\u548c\u7279\u70b9&#xff1a;\u53ef\u4ee5\u5728\u6307\u5b9a\u4f4d\u7f6e&#xff08;\u5982\u67d0\u4e2a\u89c6\u56fe\u65c1\u8fb9\u6216\u5c4f\u5e55\u7684\u67d0\u4e2a\u4f4d\u7f6e&#xff09;\u5f39\u51fa\u4e00\u4e2a\u7a97\u53e3&#xff0c;\u5b83\u7684\u4f4d\u7f6e\u548c\u663e\u793a\u65b9\u5f0f\u6bd4\u8f83\u7075\u6d3b\u3002\u53ef\u4ee5\u7528\u4e8e\u663e\u793a\u83dc\u5355\u3001\u5de5\u5177\u63d0\u793a\u6216\u8005\u4e00\u4e9b\u81ea\u5b9a\u4e49\u7684\u5c0f\u578b\u4ea4\u4e92\u754c\u9762\u3002<\/p>\n<p>PopupWindow popupWindow &#061; new PopupWindow(getContext());<br \/>\n\/\/ \u8bbe\u7f6ePopupWindow\u7684\u5e03\u5c40\u5185\u5bb9<br \/>\nDirectionalLayout layout &#061; new DirectionalLayout(getContext());<br \/>\nText text &#061; new Text(getContext());<br \/>\ntext.setText(&#034;\u8fd9\u662fPopupWindow\u7684\u5185\u5bb9&#034;);<br \/>\nlayout.addComponent(text);<br \/>\npopupWindow.setContent(layout);<br \/>\n\/\/ \u8bbe\u7f6ePopupWindow\u7684\u663e\u793a\u4f4d\u7f6e\u7b49\u5c5e\u6027<br \/>\nComponent anchor &#061; findComponentById(ResourceTable.Id_anchor_view);<br \/>\npopupWindow.showAsDropDown(anchor); <\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">9\u3001\u7528\u8fc7\u54ea\u4e9b\u88c5\u9970\u5668&#xff0c;\u5206\u522b\u4ecb\u7ecd\u4e00\u4e0b&#xff1f;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">\u7ec4\u4ef6\u76f8\u5173\u88c5\u9970\u5668<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#064;entry&#xff1a;\u7528\u4e8e\u6807\u8bb0\u9875\u9762\u7684\u5165\u53e3\u7ec4\u4ef6&#xff0c;\u4e00\u4e2a\u9875\u9762\u4e2d\u6700\u591a\u53ea\u80fd\u7531\u4e00\u4e2a\u7ec4\u4ef6\u88ab&#064;entry\u88c5\u9970\u3002<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0d0016\">&#064;component&#xff1a;\u53ea\u80fd\u88c5\u9970\u7528struct\u5173\u952e\u5b57\u58f0\u660e\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u88ab\u88c5\u9970\u7684struct\u5177\u5907\u7ec4\u4ef6\u5316\u7684\u80fd\u529b&#xff0c;\u9700\u8981\u5b9e\u73b0build\u65b9\u6cd5\u6765\u63cf\u8ff0UI&#xff0c;\u4e14\u4e00\u4e2astruct\u53ea\u80fd\u88ab\u4e00\u4e2a&#064;component\u88c5\u9970\u3002<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;Preview&#xff1a;\u4e0e&#064;entry\u548c&#064;component\u7ed3\u5408\u5b9e\u73b0\u9884\u89c8\u529f\u80fd&#xff0c;\u65b9\u4fbf\u5f00\u53d1\u8005\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u5feb\u901f\u67e5\u770b\u7ec4\u5efa\u7684\u5916\u89c2\u548c\u6548\u679c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6570\u636e\u4f20\u9012\u4e0e\u72b6\u6001\u7ba1\u7406\u88c5\u9970\u5668<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;state&#xff1a;\u5c06\u7c7b\u6216\u8005\u5bf9\u8c61\u7684\u5c5e\u6027\u6807\u8bb0\u4e3a\u72b6\u6001\u53d8\u91cf&#xff0c;\u5f53\u72b6\u6001\u53d1\u751f\u53d8\u5316\u65f6&#xff0c;UI\u7ec4\u4ef6\u4f1a\u76f8\u5e94\u5730\u66f4\u65b0&#xff0c;\u5e38\u7528\u4e8e\u5728\u7ec4\u4ef6\u5185\u90e8\u7ba1\u7406\u72b6\u6001\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;prop&#xff1a;\u7528\u4e8e\u5355\u5411\u540c\u6b65\u7236\u7ec4\u4ef6\u4f20\u9012\u7684\u6570\u636e\u5230\u5b50\u7ec4\u4ef6&#xff0c;\u5b50\u7ec4\u4ef6\u53ef\u4ee5\u4f7f\u7528\u8be5\u6570\u636e&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u4fee\u6539\u7236\u7ec4\u4ef6\u4e2d\u7684\u539f\u59cb\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;Link&#xff1a;\u5b9e\u73b0\u7236\u5b50\u7ec4\u4ef6\u4e4b\u95f4\u7684\u6570\u636e\u53cc\u5411\u4f20\u9012&#xff0c;\u5f53\u7236\u7ec4\u4ef6\u4e2d\u7684\u6570\u636e\u53d8\u5316\u65f6&#xff0c;\u5b50\u7ec4\u4ef6\u4f1a\u76f8\u5e94\u66f4\u65b0\u53cd\u4e4b&#xff0c;\u5b50\u7ec4\u4ef6\u4e2d\u6570\u636e\u7684\u53d8\u5316\u4e5f\u4f1a\u53cd\u6620\u5e26\u7236\u7ec4\u4ef6\u4e2d\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;prvoide\u548c&#064;consume&#xff1a;\u8fd9\u4e24\u4e2a\u88c5\u9970\u5668\u5f62\u6210\u751f\u4ea7\u8005-\u6d88\u8d39\u8005\u6a21\u5f0f&#xff0c;\u7528\u4e8e\u8de8\u7ec4\u4ef6\u4f20\u503c&#xff0c;\u53ef\u5b9e\u73b0\u4e0e\u540e\u4ee3\u7ec4\u4ef6\u7684\u6570\u636e\u53cc\u5411\u540c\u6b65&#xff0c;\u65b9\u4fbf\u5b50\u554a\u4e0d\u540c\u5c42\u7ea7\u7684\u7ec4\u4ef6\u4e4b\u95f4\u5171\u4eab\u548c\u66f4\u65b0\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;storageLink\u548c&#064;storageProp&#xff1a;\u4f5c\u7528\u4e8e\u5168\u5c40\u8272UI\u72b6\u6001\u5b58\u50a8&#xff0c;\u53ef\u4ee5\u518d\u4e0d\u540c\u9875\u9762\u4e4b\u95f4\u5171\u4eab\u548c\u66f4\u65b0\u6570\u636e\u3002&#064;LocalStorageLink\u548c&#064;LocalStorageProp&#xff1a;\u7528\u4e8e\u9875\u9762\u7ea7\u522b\u7684\u72b6\u6001\u5b58\u50a8&#xff0c;\u518d\u540c\u4e00\u4e2a\u9875\u9762\u5185\u5171\u4eab\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">UI\u6784\u5efa\u4e0e\u590d\u7528\u88c5\u9970\u5668<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;Builder&#xff1a;\u5c06\u91cd\u590d\u4f7f\u7528\u7684UI\u5143\u7d20\u62bd\u8c61\u6210\u4e00\u4e2a\u65b9\u6cd5\u3002\u4f7f\u7528\u8be5\u88c5\u9970\u5668\u4fee\u9970\u540e&#xff0c;\u5728Builder\u65b9\u6cd5\u91cc\u53ef\u4ee5\u8c03\u7528&#xff0c;\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u590d\u7528\u6027\u3002\u6309\u5f15\u7528\u4f20\u9012\u53c2\u6570\u65f6&#xff0c;\u4f20\u9012\u7684\u53c2\u6570\u53ef\u4e3a\u72b6\u6001\u53d8\u91cf\u3002\u4e14\u72b6\u6001\u53d8\u91cf\u7684\u6539\u53d8\u4f1a\u5f15\u8d77&#064;builder\u65b9\u6cd5\u5185\u7684UI\u5237\u65b0&#xff0c;ArkUI\u63d0\u4f9b$$\u4f5c\u4e3a\u6309\u5f15\u7528\u4f20\u9012\u53c2\u6570\u7684\u8303\u5f0f\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;BuilderParam:\u7528\u6765\u548b\u8bf4\u6307\u5411&#064;builder\u65b9\u6cd5\u7684\u53d8\u91cf&#xff0c;\u5f00\u53d1\u8005\u53ef\u5728\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u65f6\u5bf9\u6b64\u5c5e\u6027\u8fdb\u884c\u8d4b\u503c&#xff0c;\u4e3a\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u589e\u52a0\u7279\u5b9a\u7684\u529f\u80fd&#xff0c;\u7c7b\u4f3cslot\u5360\u4f4d\u7b26\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6837\u5f0f\u76f8\u5173\u88c5\u9970\u5668<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;styles&#xff1a;\u53ef\u4ee5\u5c06\u591a\u6761\u6837\u5f0f\u8bbe\u7f6e\u63d0\u70bc\u6210\u4e00\u4e2a\u65b9\u6cd5&#xff0c;\u76f4\u63a5\u5728\u7ec4\u4ef6\u58f0\u660e\u7684\u4f4d\u7f6e\u8c03\u7528&#xff0c;\u7528\u4e8e\u5feb\u901f\u5b9a\u4e49\u5e76\u590d\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;Extends&#xff1a;\u5728&#064;styles\u7684\u57fa\u7840\u4e0a&#xff0c;\u7528\u4e8e\u6269\u5c55\u539f\u751f\u7ec4\u4ef6\u6837\u5f0f&#xff0c;\u4e0e&#064;Styles\u4e0d\u540c\u7684\u662f&#xff0c;&#064;Extend\u88c5\u9970\u7684\u65b9\u6cd5\u652f\u6301\u53c2\u6570&#xff0c;\u5176\u4ed6\u88c5\u9970\u5668<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">10\u3001Ark<\/span><span style=\"color:#0d0016\">TS\u548cTS<\/span><span style=\"color:#0d0016\">\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;<\/span><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">ArkTS\u662f\u5f3a\u7c7b\u578b&#xff0c;\u6253\u5305\u7f16\u8bd1\u7684\u65f6\u5019\u4f1a\u4fdd\u7559\u7c7b\u578b&#xff0c;\u63d0\u9ad8\u7a0b\u5e8f\u8fd0\u884c\u6548\u7387<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">TS\u652f\u6301\u7c7b\u578b\u6821\u9a8c&#xff0c;\u4f46\u662f\u5e76\u4e0d\u4e25\u683c&#xff0c;\u652f\u6301any\u3001unknown\u8fd9\u4e9b\u4e0d\u660e\u786e\u7684\u7c7b\u578b&#xff0c;\u7f16\u8bd1\u540e\u5176\u5b9ejs&#043;d.ts,js\u6587\u4ef6\u4e0d\u4fdd\u7559\u7c7b\u578b\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<p style=\"margin-left:.0001pt;text-align:left\">ArkTS\u7981\u7528\u7684\u7c7b\u578b<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u6bd4\u5982\u5bf9\u8c61\u4e0d\u80fd\u968f\u610f\u6dfb\u52a0\u6216\u8005\u5220\u9664\u67d0\u4e9b\u5c5e\u6027&#xff0c;\u5bf9\u8c61\u7c7b\u578b\u8981\u660e\u786e<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u9700\u63d0\u524d\u7528interface\u6216class \u628a\u5bf9\u8c61\u7684\u7c7b\u578b\u5b9a\u4e49\u597d<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u7981\u7528\u4e86\u89e3\u6784\u8d4b\u503c<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5c55\u5f00\u8fd0\u7b97\u7b26 \u00a0\u00a0\u53ea\u652f\u6301\u6570\u7ec4&#xff0c;\u4e0d\u652f\u6301\u5bf9\u8c61\u5c55\u5f00<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u7981\u7528call\u3001apply\u3001bind \u8fd9\u4e9b\u65b9\u6cd5\u6539\u53d8this \u6307\u5411<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u7981\u7528any unknown \u8fd9\u4e9b\u4e0d\u660e\u786e\u7684\u7c7b\u578b<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u901a\u8fc7&#064;state &#064;props \u88c5\u9970\u5668\u58f0\u660e\u6570\u636e\u7684\u65f6\u5019&#xff0c;\u5fc5\u987b\u6307\u5b9a\u7c7b\u578b<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u603b\u4f53\u800c\u8a00&#xff0c;ArkTS \u8bed\u6cd5\u501f\u9274TS\u4f46\u66f4\u4e25\u683c&#xff0c;\u4ee5\u9002\u5e94\u9e3f\u8499\u5f00\u53d1\u9700\u6c42\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">11\u3001<\/span>\u9e3f\u8499\u7ec4\u4ef6\u901a\u4fe1\u5982\u4f55\u5b9e\u73b0&#xff1f;\u6709\u51e0\u79cd\u65b9\u5f0f&#xff1f;&#xff08;\u7236\u4f20\u5b50 \u5b50\u4f20\u7236&#xff09;<\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">&#xff08;\u7236\u4f20\u5b50\u3001\u5b50\u4f20\u7236&#xff0c;\u8de8\u5c42\u7ea7&#xff0c;\u8de8\u9875\u9762&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u7236\u4f20\u5b50&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u5355\u5411&#xff1a; 1. <\/span>\u6ca1\u6709\u88c5\u9970\u5668\u76f4\u63a5\u4f20\u80fd\u63a5\u6536&#xff0c;\u4f46\u662f\u4e0d\u80fd\u66f4\u65b0&#xff1b; 2.\u6216\u8005\u65f6\u901a\u8fc7&#064;prop\u63a5\u6536&#xff0c;\u7236\u7ec4\u4ef6\u5982\u679c\u6570\u636e\u662f&#064;state\u88c5\u9970\u5f97\u6570\u636e&#xff0c;\u7236\u7ec4\u4ef6\u6570\u636e\u66f4\u65b0&#xff0c;\u5b50\u7ec4\u4ef6\u80fd\u63a5\u6536\u5230\u66f4\u65b0<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u53cc\u5411&#xff1a;1\u3001<\/span>\u901a\u8fc7&#064;Link\u88c5\u9970\u7684&#xff0c;\u8981\u6c42\u7236\u7ec4\u4ef6\u5fc5\u987b\u662f \u54cd\u5e94\u5f0f\u7684\u6570\u636e\u5982&#xff1a;&#064;State&#xff0c;\u5b50\u7ec4\u4ef6\u4fee\u6539\u6570\u636e&#xff0c;\u7236\u7ec4\u4ef6\u4e5f\u80fd\u66f4\u65b0\u30022\u3001&#064;provide\u3001&#064;Consume\u4e5f\u80fd\u5b9e\u73b0&#xff0c;\u4e0d\u8fc7\u8fd9\u7ec4\u88c5\u9970\u5668\u66f4\u591a\u662f\u7528\u4e8e\u8de8\u5c42\u7ea7\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u5168\u5c40&#xff1a;1.<\/span>emitter\u901a\u8fc7\u5b9a\u4e49\u4e8b\u4ef6&#xff0c;\u89e6\u53d1\u4e8b\u4ef6\u5b9e\u73b0\u6570\u636e\u4f20\u9012&#xff0c;\u5c5e\u4e8e\u7ebf\u7a0b\u901a\u8baf&#xff0c;\u8de8\u7ec4\u4ef6&#xff0c;\u8de8\u9875\u9762\u901a\u8baf\u90fd\u53ef\u4ee5\u3002 2.Appstroage\u3002localstoreage\u4e5f\u53ef\u4ee5\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5b50\u4f20\u7236&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u4f20\u56de\u8c03\u51fd\u6570<\/span>:\u5b50\u7ec4\u4ef6\u5b9a\u4e49\u51fd\u6570\u7c7b\u578b&#xff0c;\u7236\u7ec4\u4ef6\u4f20\u9012\u51fd\u6570&#xff0c;\u5b50\u7ec4\u4ef6\u5185\u90e8\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570&#xff0c;\u901a\u8fc7\u56de\u8c03\u51fd\u6570\u628a\u53c2\u6570\u4f20\u9012\u7ed9\u7236\u7ec4\u4ef6\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u53cc\u5411<\/span>&#xff1a;&#064;Link \u00a0\u00a0\u00a0&#064;Provide \u00a0&#064;conmuse \u00a0<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u5168\u5c40<\/span>&#xff1a;emitter \u00a0\u00a0AppStroage<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u8de8\u5c42\u7ea7&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u53cc\u5411&#xff1a;<\/span>&#064;provide \u00a0&#064;consume<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u5168\u5c40&#xff1a; \u00a0<\/span>emitter \u00a0\u00a0AppStroage<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u8de8\u9875\u9762&#xff1b;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">router\u8def\u7531&#xff1a; <\/span>router.pushUrl({params:id})<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">Navigation\u8def\u7531&#xff1a;<\/span>NavPageStack.pushPath({params.id}) \u00a0<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">&#064;provide\u5b9a\u4e49\u5230\u6839\u7ec4\u4ef6&#xff0c;\u5b50\u9875\u9762\u90fd\u80fd\u901a\u8fc7&#064;consume\u8bbf\u95ee<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u5168\u5c40&#xff1a; <\/span>emitter \u00a0\u00a0AppStroage<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">12\u3001<\/span>\u7ec4\u4ef6\u7684\u751f\u547d\u5468\u671f\u6709\u54ea\u4e9b\u5927\u6982\u8bf4\u4e00\u4e0b&#xff1f;<\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">(\u901a\u7528\u7ec4\u4ef6 \/ \u81ea\u5b9a\u4e49\u7ec4\u4ef6 \/ \u88ab&#064;Entry\u4fee\u9970\u8fc7\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6 \/ NavDestination \/ Web )<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u901a\u7528\u7ec4\u4ef6<\/span>&#xff1a;onAppear \u00a0onDisAppear \u00a0\/ onAttach12&#043; \u00a0onDetach12&#043; \u00a0<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">\u81ea\u5b9a\u4e49\u7ec4\u4ef6&#xff1a;<\/span>aboutToAppear \/ aboutToDisAppear \/ onDidBuild12&#043;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\/aboutToReuse10&#043; \/ aboutToRecycle10&#043;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u88ab &#064;Entry \u4fee\u9970\u8fc7\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6&#xff1a;onPageShow \/ onPageHide<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u00a0\/ onBackPress<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#9b00d3\">NavDestination \u7ec4\u4ef6<\/span>&#xff1a;onShown \/ onHidden \/ onWillAppear<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\/ onWillShow \/onWillHide \/onWillDisappear \/ onBackPressed \/ &#8230;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#f79646\">Web \u7ec4\u4ef6<\/span>&#xff1a;onPageBegin \/ onPageEnd \/ onProgressChange \/ &#8230;<\/p>\n<p style=\"margin-left:0.0001pt;text-align:justify\">\u7ec4\u4ef6\u751f\u547d\u5468\u671f(\u4ec5&#064;Component)&#xff1a; aboutToAppear(),aboutToDisappear()<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u9875\u9762\u751f\u547d\u5468\u671f(\u4ec5&#064;Entry)&#xff1a;\u56e0\u4e3a&#064;Entry \u4e5f\u662f&#064;Component\u7ec4\u4ef6&#xff0c;\u6240\u4ee5\u9875\u9762\u7ec4\u4ef6\u540c\u65f6\u62e5\u6709\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u751f\u547d\u5468\u671f\u3002 onPageShow(), onBackPress(), onPageHide(), aboutToAppear(),<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">aboutToDisappear()<\/p>\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">13\u3001<\/span>ability\u7684\u751f\u547d\u5468\u671f<\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">onCreate(want, launchParam)&#xff1a;\u5728UI\u521b\u5efa\u540e\u6267\u884c&#xff0c;\u7528\u4e8e\u6267\u884c\u521d\u59cb\u5316\u64cd\u4f5c&#xff0c;\u8bbe\u7f6e\u521d\u59cb\u72b6\u6001&#xff0c;\u6ce8\u518c\u76d1\u542c\u5668\u7b49<\/p>\n<p style=\"margin-left:0;text-align:left\">onDestroy()&#xff1a;\u5728UI\u9500\u6bc1\u540e\u6267\u884c&#xff0c;\u7528\u4e8e\u8fdb\u884c\u6e05\u7406\u64cd\u4f5c&#xff0c;\u91ca\u653e\u8d44\u6e90\u7b49\u3002<\/p>\n<p style=\"margin-left:0;text-align:left\">onWindowStageCreate(windowStage: window.WindowStage)&#xff1a;\u5728\u4e3b\u7a97\u53e3\u521b\u5efa\u540e\u6267\u884c&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u4e3b\u9875\u9762\u5e76\u8fdb\u884c\u4e00\u4e9bUI\u76f8\u5173\u7684\u64cd\u4f5c\u3002<\/p>\n<p style=\"margin-left:0;text-align:left\">onWindowStageDestroy()&#xff1a;\u5728\u4e3b\u7a97\u53e3\u9500\u6bc1\u540e\u6267\u884c&#xff0c;\u7528\u4e8e\u91ca\u653e\u4e0eUI\u76f8\u5173\u7684\u8d44\u6e90\u3002<\/p>\n<p style=\"margin-left:0;text-align:left\">onForeground()&#xff1a;\u5728Ability\u8fdb\u5165\u524d\u53f0\u540e\u6267\u884c&#xff0c;\u53ef\u4ee5\u6267\u884c\u4e00\u4e9b\u4e0e\u524d\u53f0\u663e\u793a\u76f8\u5173\u7684\u64cd\u4f5c\u3002<\/p>\n<p style=\"margin-left:0;text-align:left\">onBackground()&#xff1a;\u5728Ability\u5207\u6362\u5230\u540e\u53f0\u540e\u6267\u884c&#xff0c;\u53ef\u4ee5\u6267\u884c\u4e00\u4e9b\u4e0e\u540e\u53f0\u8fd0\u884c\u76f8\u5173\u7684\u64cd\u4f5c\u3002<\/p>\n<p style=\"margin-left:0;text-align:left\">\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:left\"><span style=\"color:#0d0016\">14\u3001<\/span>navigation\u751f\u547d\u5468\u671f&#xff08;\u8def\u7531\u8df3\u8f6c&#xff09;<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\">aboutToAppear&#xff1a;\u5728\u521b\u5efa\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u540e&#xff0c;\u6267\u884c\u5176build()\u51fd\u6570\u4e4b\u524d\u6267\u884c&#xff08;NavDestination\u521b\u5efa\u4e4b\u524d&#xff09;&#xff0c;\u5141\u8bb8\u5728\u8be5\u65b9\u6cd5\u4e2d\u6539\u53d8\u72b6\u6001\u53d8\u91cf&#xff0c;\u66f4\u6539\u5c06\u5728\u540e\u7eed\u6267\u884cbuild()\u51fd\u6570\u4e2d\u751f\u6548\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onWillAppear&#xff1a;NavDestination\u521b\u5efa\u540e&#xff0c;\u6302\u8f7d\u5230\u7ec4\u4ef6\u6811\u4e4b\u524d\u6267\u884c&#xff0c;\u5728\u8be5\u65b9\u6cd5\u4e2d\u66f4\u6539\u72b6\u6001\u53d8\u91cf\u4f1a\u5728\u5f53\u524d\u5e27\u663e\u793a\u751f\u6548\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onWillDisappear&#xff1a;NavDestination\u7ec4\u4ef6\u5373\u5c06\u9500\u6bc1\u4e4b\u524d\u6267\u884c&#xff0c;\u5982\u679c\u6709\u8f6c\u573a\u52a8\u753b&#xff0c;\u4f1a\u5728\u52a8\u753b\u524d\u89e6\u53d1&#xff08;\u6808\u9876\u9875\u9762pop\u51fa\u6808&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onAppear&#xff1a;\u901a\u7528\u751f\u547d\u5468\u671f\u4e8b\u4ef6&#xff0c;NavDestination\u7ec4\u4ef6\u6302\u8f7d\u5230\u7ec4\u4ef6\u6811\u65f6\u6267\u884c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onDisappear&#xff1a;\u901a\u7528\u751f\u547d\u5468\u671f\u4e8b\u4ef6&#xff0c;NavDestination\u7ec4\u4ef6\u4ece\u7ec4\u4ef6\u6811\u4e0a\u5378\u8f7d\u9500\u6bc1\u65f6\u6267\u884c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onWillShow&#xff1a;NavDestination\u7ec4\u4ef6\u5e03\u5c40\u663e\u793a\u4e4b\u524d\u6267\u884c&#xff0c;\u6b64\u65f6\u9875\u9762\u4e0d\u53ef\u89c1&#xff08;\u5e94\u7528\u5207\u6362\u5230\u524d\u53f0\u4e0d\u4f1a\u89e6\u53d1&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onWillHide&#xff1a;NavDestination\u7ec4\u4ef6\u89e6\u53d1\u9690\u85cf\u4e4b\u524d\u6267\u884c&#xff08;\u5e94\u7528\u5207\u6362\u5230\u540e\u53f0\u4e0d\u4f1a\u89e6\u53d1&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onHidden&#xff1a;NavDestination\u7ec4\u4ef6\u89e6\u53d1\u9690\u85cf\u540e\u6267\u884c&#xff08;\u975e\u6808\u9876\u9875\u9762push\u8fdb\u6808&#xff0c;\u6808\u9876\u9875\u9762pop\u51fa\u6808\u6216\u5e94\u7528\u5207\u6362\u5230\u540e\u53f0&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">onShown&#xff1a;NavDestination\u7ec4\u4ef6\u5e03\u5c40\u663e\u793a\u4e4b\u540e\u6267\u884c&#xff0c;\u6b64\u65f6\u9875\u9762\u5df2\u5b8c\u6210\u5e03\u5c40\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">aboutToDisappear&#xff1a;\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u6790\u6784\u9500\u6bc1\u4e4b\u524d\u6267\u884c&#xff0c;\u4e0d\u5141\u8bb8\u5728\u8be5\u65b9\u6cd5\u4e2d\u6539\u53d8\u72b6\u6001\u53d8\u91cf\u3002<\/p>\n<h4 style=\"background-color:transparent;text-align:justify\">15\u3001web\u7ec4\u4ef6\u751f\u547d\u5468\u671f<\/h4>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onControllerAttached<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;Controller\u6210\u529f\u7ed1\u5b9aWeb\u7ec4\u4ef6\u65f6\u89e6\u53d1\u8be5\u56de\u8c03&#xff0c;\u4e14\u7981\u6b62\u5728\u8be5\u4e8b\u4ef6\u56de\u8c03\u524d\u8c03\u7528Web\u7ec4\u4ef6\u76f8\u5173\u7684\u63a5\u53e3&#xff0c;\u5426\u5219\u4f1a\u629b\u51fajs-error\u5f02\u5e38\u3002<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onLoadIntercept<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;\u5f53Web\u7ec4\u4ef6\u52a0\u8f7durl\u4e4b\u524d\u89e6\u53d1\u8be5\u56de\u8c03&#xff0c;\u7528\u4e8e\u5224\u65ad\u662f\u5426\u963b\u6b62\u6b64\u6b21\u8bbf\u95ee\u3002\u9ed8\u8ba4\u5141\u8bb8\u52a0\u8f7d\u3002<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onInterceptRequest<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;\u5f53Web\u7ec4\u4ef6\u52a0\u8f7durl\u4e4b\u524d\u89e6\u53d1\u8be5\u56de\u8c03&#xff0c;\u7528\u4e8e\u62e6\u622aurl\u5e76\u8fd4\u56de\u54cd\u5e94\u6570\u636e\u3002<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onPageBegin<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;\u7f51\u9875\u5f00\u59cb\u52a0\u8f7d\u65f6\u89e6\u53d1\u8be5\u56de\u8c03&#xff0c;<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onProgressChange<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;\u53ef\u4ee5\u4ece\u8fd9\u4e2a\u56de\u8c03\u83b7\u53d6\u5f53\u524d\u9875\u9762\u52a0\u8f7d\u8fdb\u5ea6<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\"><span style=\"color:#0a59f7\">onPageEnd<\/span><span style=\"color:#242728\">\u4e8b\u4ef6&#xff1a;\u7f51\u9875\u52a0\u8f7d\u5b8c\u6210\u65f6\u89e6\u53d1\u8be5\u56de\u8c03<\/span><\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">16\u3001Localstorage\u548cappStorage\u7684\u533a\u522b&#xff0c;\u548c\u5bf9\u5e94\u7684\u88c5\u9970\u5668&#xff1f;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">Localstorage\u662f\u9875\u9762\u6570\u636e\u5e03\u5c40&#xff0c;\u5728\u9875\u9762\u4e2d\u521b\u5efa\u5b9e\u4f8b&#xff0c;\u7ec4\u4ef6\u4e2d\u4f7f\u7528&#064;localStoragelink\u548c&#064;Localstorageprop\u88c5\u9970\u5668\u4fee\u9970\u5bf9\u5e94\u7684\u72b6\u6001\u53d8\u91cf&#xff0c;\u7ed1\u5b9a\u5bf9\u5e94\u7684\u7ec4\u4ef6\u4f7f\u7528\u6bd4\u72b6\u6001\u5c5e\u6027\u66f4\u7075\u6d3b\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<p style=\"margin-left:.0001pt;text-align:left\">Appstorage\u662f\u8fdb\u7a0b\u7ea7\u6570\u636e\u5b58\u50a8&#xff0c;\u8fdb\u7a0b\u542f\u52a8\u65f6\u81ea\u52a8\u521b\u5efa\u4e86\u552f\u4e00\u5b9e\u4f8b&#xff0c;\u5728\u5404\u4e2a\u9875\u9762\u7ec4\u4ef6\u4e2d&#064;storageprop\u548cstorageLink\u88c5\u9970\u5668\u4fee\u9970\u5bf9\u5e94\u72b6\u6001\u53d8\u91cf\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#ff0000\">Localstorage\u548cappstorage\u6570\u636e\u5b58\u53d6\u90fd\u662f\u5728\u4e3b\u7ebf\u7a0b\u8fdb\u884c\u5f97<\/span>&#xff0c;\u4e14api\u53ea\u63d0\u4f9b\u4e86\u540c\u6b65\u63a5\u53e3&#xff0c;\u5b58\u53d6\u6570\u636e\u65f6\u8981\u6ce8\u610f\u6570\u636e\u5f97\u5927\u5c0f\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">17\u3001\u5b9e\u73b0\u591a\u7ebf\u7a0b\u3001\u6709\u5b9e\u9645\u4f7f\u7528\u8fc7\u561b&#xff1f;\u4ec0\u4e48\u60c5\u51b5\u4e0b\u4f1a\u4f7f\u7528<\/h4>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5728ArkTS\u4e2d\u5b9e\u73b0\u591a\u7ebf\u7a0b\u4e3b\u8981\u901a\u8fc7\u4e24\u79cd\u673a\u5236&#xff1a; worker\u548cTaskPool<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">Worker&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u7528\u9014<\/span>&#xff1a;\u5728\u540e\u53f0\u7ebf\u7a0b\u4e2d\u6267\u884c\u4efb\u52a1&#xff0c;\u907f\u514d\u963b\u585e\u4e3b\u7ebf\u7a0b\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u4f7f\u7528\u573a\u666f&#xff1a;<\/span>\u5904\u7406\u8017\u65f6\u64cd\u4f5c&#xff0c;\u5982\u7f51\u7edc\u8bf7\u6c42&#xff0c;\u6587\u4ef6\u8bfb\u5199\u7b49\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u7279\u70b9&#xff1a;<\/span>\u6709\u751f\u547d\u5468\u671f&#xff0c;\u9700\u8981\u624b\u52a8\u53bb\u63a7\u5236&#xff0c;\u6700\u591a\u8bfe\u521b\u5efa64\u4e2aworker\u5b50\u7ebf\u7a0b\u7b49\u7b49\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u8bed\u6cd5&#xff1a;<\/span>\u9996\u5148\u9700\u8981\u5148\u65b0\u5efa\u4e00\u4e2aworker.ets \u7684\u6587\u4ef6&#xff08;\u4f1a\u5728builder-profile.json\u4e2d\u81ea\u52a8\u914d\u7f6e\u6587\u4ef6\u8def\u5f84,\u5728\u9700\u8981\u5904\u7406\u4e1a\u52a1\u7684\u9875\u9762new\u4e00\u4e2aworker&#xff0c;\u4f7f\u7528\u4ed6\u7684threadworker\u65b9\u6cd5\u914d\u7f6eworker\u6587\u4ef6\u8def\u5f84&#xff0c;\u901a\u8fc7\u8fd9\u4e2a\u5b9e\u4f8b\u7684postmessage\u65b9\u6cd5\u4e0b\u53d1\u4efb\u52a1&#xff0c;\u5728worker.ets\u7684onmessage\u5904\u7406\u6536\u5230\u7684\u4efb\u52a1&#xff0c;\u5f53\u4efb\u52a1\u5b8c\u6210\u4ee5\u540e&#xff0c;\u5b50\u7ebf\u7a0b\u53ef\u4ee5\u4f7f\u7528postmessage\u53cd\u9988\u6d88\u606f\u901a\u77e5\u5230\u4e3b\u7ebf\u7a0b&#xff0c;\u540c\u65f6\u4f7f\u7528close\u53ef\u4ee5\u5173\u95ed\u5b50\u7ebf\u7a0b&#xff0c;\u4efb\u52a1\u7ed3\u675f\u3002&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">Taskpool<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u7528\u9014<\/span>&#xff1a;\u7ba1\u7406\u591a\u4e2a\u540e\u53f0\u4efb\u52a1&#xff0c;\u652f\u6301\u4efb\u52a1\u7684\u5e76\u53d1\u6267\u884c&#xff1b;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u4f7f\u7528\u573a\u666f&#xff1a;<\/span>\u9700\u8981\u540c\u65f6\u5904\u7406\u591a\u4e2a\u4efb\u52a1&#xff0c;\u5982\u6279\u91cf\u4e0b\u8f7d&#xff0c;\u6279\u91cf\u4e0a\u4f20\u7b49<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u7279\u70b9&#xff1a;<\/span>\u6709\u65f6\u957f\u9650\u5236&#xff0c;\u8fd0\u884c\u65f6\u957f3\u5206\u949f&#xff0c;taskpool\u53ef\u4ee5\u8bbe\u7f6e\u4efb\u52a1\u4f18\u5148\u7ea7&#xff0c;worker\u4e0d\u652f\u6301&#xff0c;\u4efb\u52a1\u91cf\u5927\u6216\u8005\u8c03\u5ea6\u5206\u6563\u7684\u4efb\u52a1\u4f18\u5148\u8003\u8651\u4f7f\u7528taskpool&#xff08;\u5b98\u65b9\u63a8\u8350&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u8bed\u6cd5&#xff1a;<\/span>\u9996\u5148\u5c01\u88c5\u9700\u8981\u5904\u7406\u4e1a\u52a1\u7684\u51fd\u6570&#xff08;\u8017\u65f6\u8f83\u957f&#xff0c;\u4f1a\u5835\u585e\u4e3b\u7ebf\u7a0b&#xff09;&#xff0c;\u88c5\u9970\u5668\u4f7f\u7528&#064;concurrent&#xff0c;\u51fd\u6570\u8fd4\u56de\u503c\u5c31\u662f\u4efb\u52a1\u5b8c\u6210\u7684\u7ed3\u679c&#xff0c;\u7136\u540enew taskpool&#xff0c;task &#xff08;\u5c01\u88c5\u7684\u51fd\u6570&#xff0c;\u53c2\u6570&#xff09;&#xff0c;\u8fd4\u56de\u503c\u5c31\u662f\u6784\u5efa\u5b8c\u6210\u7684\u4efb\u52a1&#xff0c;\u518d\u8c03\u7528taskpool&#xff0c;execute&#xff08;\u4efb\u52a1&#xff09;\u65b9\u6cd5\u6267\u884c\u4efb\u52a1&#xff0c;\u5b83\u662fpromise&#xff0c;\u518d\u4e3b\u7ebf\u7a0b\u63a5\u6536\u7ed3\u679c\u5c31ok\u4e86<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"color:#0000ff\">\u591a\u7ebf\u7a0b\u573a\u666f<\/span>&#xff1a;\u56fe\u7247\u89c6\u9891\u89e3\u7801\u3001\u538b\u7f29\u3001\u89e3\u538b\u7f29\u3001Json\u89e3\u6790\u3001\u6a21\u578b\u8fd0\u7b97\u3001\u6570\u636e\u5e93\u64cd\u4f5c\u3001\u7f51\u7edc\u4e0b\u8f7d\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">18\u3001\u7528\u8fc7\u54ea\u4e9b\u7ec4\u4ef6&#xff0c;\u5206\u522b\u4ecb\u7ecd\u4e00\u4e0b&#xff1f;<\/h4>\n<h4 id=\"mO34n\">\u57fa\u7840\u7ec4\u4ef6<\/h4>\n<ul>\n<li id=\"u9bd7dc68\">Text&#xff1a;\u7528\u4e8e\u5728\u754c\u9762\u4e0a\u663e\u793a\u6587\u672c\u5185\u5bb9\u3002\u53ef\u8bbe\u7f6e\u6587\u672c\u5185\u5bb9\u3001\u5b57\u4f53\u5927\u5c0f\u3001\u989c\u8272\u3001\u7c97\u7ec6\u3001\u5bf9\u9f50\u65b9\u5f0f\u7b49\u5c5e\u6027&#xff0c;\u8fd8\u80fd\u901a\u8fc7\u6dfb\u52a0\u6837\u5f0f\u6765\u6539\u53d8\u6587\u672c\u7684\u5916\u89c2\u548c\u98ce\u683c&#xff0c;\u4f8b\u5982\u5b9e\u73b0\u9634\u5f71\u3001\u4e0b\u5212\u7ebf\u7b49\u6548\u679c\u3002<\/li>\n<li id=\"u5745cc23\">Image&#xff1a;\u4e3b\u8981\u7528\u4e8e\u5c55\u793a\u56fe\u7247\u3002\u80fd\u591f\u8bbe\u7f6e\u56fe\u7247\u6e90&#xff0c;\u652f\u6301\u7f51\u7edc\u56fe\u7247\u3001\u672c\u5730\u56fe\u7247\u7b49\u591a\u79cd\u6765\u6e90&#xff0c;\u540c\u65f6\u53ef\u8bbe\u7f6e\u56fe\u7247\u7684\u5bbd\u5ea6\u3001\u9ad8\u5ea6\u3001\u8fb9\u6846\u5706\u89d2\u3001\u7f29\u653e\u6a21\u5f0f\u7b49\u5c5e\u6027&#xff0c;\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5e03\u5c40\u548c\u5c55\u793a\u9700\u6c42\u3002<\/li>\n<li id=\"udce6eacd\">TextInput&#xff1a;\u662f\u63a5\u6536\u7528\u6237\u6587\u672c\u8f93\u5165\u7684\u7ec4\u4ef6\u3002\u53ef\u4ee5\u8bbe\u7f6e\u5360\u4f4d\u7b26\u63d0\u793a\u7528\u6237\u8f93\u5165\u5185\u5bb9&#xff0c;\u6307\u5b9a\u6587\u672c\u7c7b\u578b&#xff0c;\u5982\u5bc6\u7801\u3001\u90ae\u7bb1\u7b49&#xff0c;\u8fd8\u80fd\u76d1\u542c\u8f93\u5165\u4e8b\u4ef6&#xff0c;\u5728\u7528\u6237\u8f93\u5165\u53d8\u5316\u65f6\u6267\u884c\u76f8\u5e94\u7684\u56de\u8c03\u51fd\u6570&#xff0c;\u7528\u4e8e\u5b9e\u65f6\u9a8c\u8bc1\u6216\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u3002<\/li>\n<li id=\"u2e519fb8\">Button&#xff1a;\u7528\u4e8e\u54cd\u5e94\u7528\u6237\u7684\u70b9\u51fb\u64cd\u4f5c\u3002\u53ef\u8bbe\u7f6e\u6309\u94ae\u4e0a\u663e\u793a\u7684\u6587\u5b57\u3001\u6309\u94ae\u7684\u7c7b\u578b&#xff0c;\u5982\u666e\u901a\u6309\u94ae\u3001\u80f6\u56ca\u6309\u94ae\u7b49&#xff0c;\u8fd8\u80fd\u5b9a\u4e49\u70b9\u51fb\u6548\u679c&#xff0c;\u5982\u6309\u4e0b\u65f6\u7684\u989c\u8272\u53d8\u5316\u3001\u52a8\u753b\u6548\u679c\u7b49&#xff0c;\u901a\u8fc7\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6\u6765\u6267\u884c\u76f8\u5e94\u7684\u4e1a\u52a1\u903b\u8f91\u3002 &#8211;<\/li>\n<\/ul>\n<h4 id=\"RzS2t\">\u00a0\u5bb9\u5668\u7ec4\u4ef6<\/h4>\n<ul>\n<li id=\"u11ffc8dc\">Column&#xff1a;\u662f\u6cbf\u5782\u76f4\u65b9\u5411\u5e03\u5c40\u7684\u5bb9\u5668\u7ec4\u4ef6&#xff0c;\u5b50\u7ec4\u4ef6\u4f1a\u6309\u7167\u987a\u5e8f\u4ece\u4e0a\u5230\u4e0b\u6392\u5217\u3002\u53ef\u901a\u8fc7\u8bbe\u7f6e\u5bf9\u9f50\u65b9\u5f0f\u3001\u95f4\u8ddd\u7b49\u5c5e\u6027\u6765\u63a7\u5236\u5b50\u7ec4\u4ef6\u7684\u5e03\u5c40\u65b9\u5f0f&#xff0c;\u5e38\u7528\u4e8e\u6784\u5efa\u5782\u76f4\u6392\u5217\u7684\u754c\u9762\u5143\u7d20&#xff0c;\u5982\u5217\u8868\u3001\u8868\u5355\u7b49\u3002<\/li>\n<li id=\"udffd6ec0\">Row&#xff1a;\u6cbf\u6c34\u5e73\u65b9\u5411\u5e03\u5c40\u7684\u5bb9\u5668\u7ec4\u4ef6&#xff0c;\u5b50\u7ec4\u4ef6\u4ece\u5de6\u5230\u53f3\u4f9d\u6b21\u6392\u5217\u3002\u540c\u6837\u53ef\u4ee5\u8bbe\u7f6e\u5bf9\u9f50\u65b9\u5f0f\u3001\u95f4\u8ddd\u7b49\u5c5e\u6027&#xff0c;\u9002\u7528\u4e8e\u9700\u8981\u6c34\u5e73\u6392\u5217\u7684\u7ec4\u4ef6&#xff0c;\u5982\u5bfc\u822a\u680f\u3001\u6c34\u5e73\u83dc\u5355\u7b49\u3002<\/li>\n<li id=\"ud942dc49\">Stack&#xff1a;\u5b50\u7ec4\u4ef6\u6309\u7167\u987a\u5e8f\u4f9d\u6b21\u5165\u6808&#xff0c;\u540e\u4e00\u4e2a\u5b50\u7ec4\u4ef6\u4f1a\u8986\u76d6\u524d\u4e00\u4e2a\u5b50\u7ec4\u4ef6\u3002\u53ef\u7528\u4e8e\u5b9e\u73b0\u91cd\u53e0\u5e03\u5c40&#xff0c;\u4f8b\u5982\u5728\u56fe\u7247\u4e0a\u6dfb\u52a0\u6587\u5b57\u8bf4\u660e\u3001\u521b\u5efa\u5e26\u6709\u906e\u7f69\u5c42\u7684\u6548\u679c\u7b49&#xff0c;\u901a\u8fc7\u8bbe\u7f6e\u5b50\u7ec4\u4ef6\u7684\u900f\u660e\u5ea6\u548c\u5c42\u7ea7\u5173\u7cfb\u6765\u63a7\u5236\u663e\u793a\u6548\u679c\u3002<\/li>\n<li id=\"u707c6d54\">Flex&#xff1a;\u4ee5\u5f39\u6027\u65b9\u5f0f\u5e03\u5c40\u5b50\u7ec4\u4ef6\u7684\u5bb9\u5668\u7ec4\u4ef6&#xff0c;\u80fd\u6839\u636e\u53ef\u7528\u7a7a\u95f4\u81ea\u52a8\u8c03\u6574\u5b50\u7ec4\u4ef6\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\u3002\u53ef\u4ee5\u8bbe\u7f6e\u4e3b\u8f74\u65b9\u5411\u3001\u4ea4\u53c9\u8f74\u65b9\u5411\u7684\u5bf9\u9f50\u65b9\u5f0f\u3001\u5b50\u7ec4\u4ef6\u7684\u5f39\u6027\u7cfb\u6570\u7b49\u5c5e\u6027&#xff0c;\u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u5e03\u5c40\u65b9\u5f0f&#xff0c;\u9002\u7528\u4e8e\u5404\u79cd\u590d\u6742\u7684\u754c\u9762\u5e03\u5c40\u9700\u6c42\u3002<\/li>\n<li id=\"u647b58fd\">List&#xff1a;\u7528\u4e8e\u5c55\u793a\u4e00\u7cfb\u5217\u76f8\u540c\u5bbd\u5ea6\u7684\u5217\u8868\u9879\u3002\u901a\u5e38\u914d\u5408ListItem\u6216ListItemGroup\u4f7f\u7528&#xff0c;\u53ef\u65b9\u4fbf\u5730\u5c55\u793a\u5206\u7ec4\u5217\u8868\u9879&#xff0c;\u652f\u6301\u6570\u636e\u7ed1\u5b9a\u548c\u5217\u8868\u9879\u7684\u52a8\u6001\u66f4\u65b0&#xff0c;\u80fd\u5b9e\u73b0\u5404\u79cd\u7c7b\u578b\u7684\u5217\u8868&#xff0c;\u5982\u65b0\u95fb\u5217\u8868\u3001\u5546\u54c1\u5217\u8868\u7b49\u3002<\/li>\n<li id=\"ud3ef8a4d\">Grid&#xff1a;\u7531\u201c\u884c\u201d\u548c\u201c\u5217\u201d\u5206\u5272\u7684\u5355\u5143\u683c\u6240\u7ec4\u6210&#xff0c;\u901a\u8fc7\u6307\u5b9a\u201c\u9879\u76ee\u201d\u6240\u5728\u7684\u5355\u5143\u683c\u6765\u8fdb\u884c\u5e03\u5c40\u3002\u53ef\u4ee5\u8bbe\u7f6e\u884c\u6570\u3001\u5217\u6570\u3001\u5355\u5143\u683c\u95f4\u8ddd\u7b49\u5c5e\u6027&#xff0c;\u5e38\u7528\u4e8e\u5c55\u793a\u56fe\u7247\u5899\u3001\u56fe\u6807\u77e9\u9635\u7b49\u9700\u8981\u7f51\u683c\u5e03\u5c40\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<h4 id=\"aUtKf\">\u5a92\u4f53\u7ec4\u4ef6<\/h4>\n<ul>\n<li id=\"uf250c33d\">Video&#xff1a;\u7528\u4e8e\u5728\u754c\u9762\u4e0a\u64ad\u653e\u89c6\u9891\u5185\u5bb9\u3002\u652f\u6301\u8bbe\u7f6e\u89c6\u9891\u6e90\u3001\u63a7\u5236\u64ad\u653e\u72b6\u6001&#xff0c;\u5982\u64ad\u653e\u3001\u6682\u505c\u3001\u505c\u6b62\u7b49&#xff0c;\u8fd8\u80fd\u8c03\u6574\u89c6\u9891\u7684\u97f3\u91cf\u3001\u4eae\u5ea6\u3001\u5bf9\u6bd4\u5ea6\u7b49\u53c2\u6570&#xff0c;\u4ee5\u53ca\u8bbe\u7f6e\u89c6\u9891\u7684\u586b\u5145\u6a21\u5f0f\u548c\u64ad\u653e\u5faa\u73af\u65b9\u5f0f\u7b49\u3002<\/li>\n<li id=\"u0a3f055e\">Audio&#xff1a;\u4e3b\u8981\u7528\u4e8e\u64ad\u653e\u97f3\u9891\u5185\u5bb9\u3002\u53ef\u4ee5\u8bbe\u7f6e\u97f3\u9891\u6e90\u3001\u63a7\u5236\u64ad\u653e\u3001\u6682\u505c\u3001\u5207\u6362\u97f3\u9891\u7b49\u64cd\u4f5c&#xff0c;\u540c\u65f6\u652f\u6301\u8c03\u8282\u97f3\u91cf\u3001\u64ad\u653e\u8fdb\u5ea6\u7b49\u529f\u80fd&#xff0c;\u8fd8\u80fd\u76d1\u542c\u97f3\u9891\u7684\u64ad\u653e\u72b6\u6001\u53d8\u5316\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<h4 id=\"SL7B2\" style=\"background-color:transparent\">\u5176\u4ed6\u7ec4\u4ef6<\/h4>\n<ul>\n<li id=\"u99659eee\">Span&#xff1a;\u4f5c\u4e3aText\u7ec4\u4ef6\u7684\u5b50\u7ec4\u4ef6&#xff0c;\u7528\u4e8e\u663e\u793a\u884c\u5185\u6587\u672c\u7247\u6bb5\u3002\u53ef\u4ee5\u4e3a\u4e0d\u540c\u7684\u6587\u672c\u7247\u6bb5\u8bbe\u7f6e\u4e0d\u540c\u7684\u6837\u5f0f&#xff0c;\u5982\u989c\u8272\u3001\u5b57\u4f53\u5927\u5c0f\u7b49&#xff0c;\u4ece\u800c\u5728\u4e00\u4e2aText\u7ec4\u4ef6\u4e2d\u5b9e\u73b0\u591a\u79cd\u6837\u5f0f\u7684\u6587\u672c\u663e\u793a\u3002<\/li>\n<li id=\"u54d36927\">Blank&#xff1a;\u5728\u5bb9\u5668\u4e3b\u8f74\u65b9\u5411\u4e0a&#xff0c;\u5177\u6709\u81ea\u52a8\u586b\u5145\u5bb9\u5668\u7a7a\u4f59\u90e8\u5206\u7684\u80fd\u529b&#xff0c;\u5e38\u7528\u4e8e\u5e03\u5c40\u4e2d\u9700\u8981\u5360\u4f4d\u6216\u586b\u5145\u7a7a\u767d\u533a\u57df\u7684\u573a\u666f&#xff0c;\u4ee5\u5b9e\u73b0\u7ec4\u4ef6\u7684\u81ea\u9002\u5e94\u5e03\u5c40\u3002<\/li>\n<li id=\"u2969bb43\">Divider&#xff1a;\u7528\u4e8e\u5206\u9694\u4e0d\u540c\u5185\u5bb9\u5757\u6216\u5185\u5bb9\u5143\u7d20&#xff0c;\u53ef\u8bbe\u7f6e\u5206\u9694\u7ebf\u7684\u989c\u8272\u3001\u7c97\u7ec6\u3001\u6837\u5f0f\u7b49\u5c5e\u6027&#xff0c;\u4f7f\u754c\u9762\u7684\u7ed3\u6784\u66f4\u52a0\u6e05\u6670&#xff0c;\u5185\u5bb9\u5206\u7ec4\u66f4\u52a0\u660e\u786e\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:.0001pt;text-align:left\">19\u3001\u00a0Row \u7ec4\u4ef6\u5982\u4f55\u5c06\u5143\u7d20\u653e\u5230\u53f3\u4e0b\u2ec6&#xff1f;<\/h4>\n<p id=\"uc0784326\">\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eRow\u7684justifyContent\u4e3aflex-end\u548calignItems\u4e3aflex-end\u6765\u5b9e\u73b0\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"74\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055054-6817003e231c9.png\" width=\"356\" \/><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">20\u3001\u5b50\u7ebf\u7a0b\u548c\u4e3b\u7ebf\u7a0b\u5982\u4f55\u901a\u8baf&#xff1f;<\/h4>\n<p id=\"ub5a08a75\">\u2f26\u7ebf\u7a0b\u53ef\u4ee5\u901a\u8fc7\u6d88\u606f\u4f20\u9012\u673a\u5236\u4e0e\u4e3b\u7ebf\u7a0b\u901a\u8baf&#xff0c;\u4f8b\u5982\u4f7f\u2f64postMessage\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">21\u3001<span style=\"color:#0d0016\">\u6027\u80fd\u4f18\u5316\u53ef\u4ee5\u5206\u4e3a4\u65b9\u9762<\/span><\/h4>\n<p style=\"text-align:left\">\u9996\u5148\u662f\u5e03\u5c40<\/p>\n<li style=\"text-align:left\">\u5e03\u5c40\u5d4c\u5957\u6bd4\u8f83\u6df1\u7684\u60c5\u51b5\u4e0b\u5e94\u8be5\u4f7f\u7528\u76f8\u5bf9\u5e03\u5c40&#xff0c;\u5b9a\u4f4d&#xff0c;Grid&#xff0c;GridRow\u7b49\u7b49\u6241\u5e73\u5316\u5e03\u5c40&#xff0c;\u51cf\u5c11\u5e03\u5c40\u5d4c\u5957\u5c42\u6570\u3002<\/li>\n<li style=\"text-align:left\">\u5408\u7406\u7684\u4f7f\u7528\u72b6\u6001\u53d8\u91cf&#xff0c;\u907f\u514d\u521b\u5efa\u8bfb\u53d6\u4e0d\u5fc5\u8981\u7684\u72b6\u6001\u53d8\u91cf&#xff0c;\u907f\u514d\u6ee5\u7528&#064;provide\u548c&#064;consume<\/li>\n<li style=\"text-align:left\">\u5408\u7406\u4f7f\u7528\u7cfb\u7edf\u7684\u9ad8\u9891\u56de\u8c03\u63a5\u53e3&#xff0c;\u5220\u9664\u4e0d\u5fc5\u8981\u7684\u65e5\u5fd7\u6253\u5370&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u5f00\u9500\u3002<\/li>\n<li style=\"text-align:left\">\u5408\u7406\u5730\u4f7f\u7528\u5e76\u884c\u5316\u3001\u9884\u52a0\u8f7d\u548c\u7f13\u5b58\u7b49\u65b9\u6cd5&#xff0c;\u63d0\u5347\u7cfb\u7edf\u8d44\u6e90\u5229\u7528\u7387&#xff0c;\u51cf\u5c11\u4e3b\u7ebf\u7a0b\u8d1f\u8f7d&#xff0c;\u52a0\u5feb\u5e94\u7528\u7684\u542f\u52a8\u901f\u5ea6\u548c\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<p style=\"text-align:left\">\u6bd4\u65b9\u8bf4&#xff1a;<\/p>\n<p style=\"text-align:left\">\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u521b\u5efa\u5b8c\u6210\u4e4b\u540e&#xff0c;\u5728build\u51fd\u6570\u6267\u884c\u4e4b\u524d&#xff0c;\u5c06\u5148\u6267\u884caboutToppear&#xff08;&#xff09;\u751f\u547d\u5468\u671f\u56de\u8c03\u51fd\u6570\u3002\u6b64\u65f6\u82e5\u5728\u8be5\u51fd\u6570\u4e2d\u6267\u884c\u8017\u65f6\u64cd\u4f5c&#xff0c;\u5c06\u963b\u585eUI\u6e32\u67d3&#xff0c;\u589e\u52a0UI\u4e3b\u7ebf\u7a0b\u8d1f\u62c5&#xff0c;\u56e0\u6b64&#xff0c;<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\">22\u3001Builder\u548cBuildParams\u7684\u533a\u522b<\/h4>\n<p id=\"uf025d564\">\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d&#xff0c;Builder\u548cBuildParams\u6709\u4ee5\u4e0b\u533a\u522b&#xff1a;<\/p>\n<ul>\n<li id=\"u5cfb2825\">\u529f\u80fd\u7528\u9014<\/li>\n<\/ul>\n<ul>\n<li>Builder&#xff1a;\u662f\u4e00\u79cd\u88c5\u9970\u5668&#xff0c;\u7528\u4e8e\u5b9a\u4e49\u7ec4\u4ef6\u7684\u58f0\u660e\u5f0f UI \u63cf\u8ff0&#xff0c;\u5c06\u91cd\u590d\u4f7f\u7528\u7684 UI \u5143\u7d20\u62bd\u8c61\u6210\u4e00\u4e2a\u65b9\u6cd5&#xff0c;\u4ee5\u5b9e\u73b0\u8f7b\u91cf\u7ea7\u7684 UI \u590d\u7528\u7ed3\u6784\u3002\u6bd4\u5982&#xff0c;\u5728\u591a\u4e2a\u5730\u65b9\u9700\u8981\u663e\u793a\u4e00\u4e2a\u7279\u5b9a\u6837\u5f0f\u7684\u6309\u94ae&#xff0c;\u5c31\u53ef\u4ee5\u7528Builder\u6765\u5b9a\u4e49\u8fd9\u4e2a\u6309\u94ae\u7684\u6784\u5efa\u8fc7\u7a0b&#xff0c;\u7136\u540e\u5728\u4e0d\u540c\u5730\u65b9\u8c03\u7528\u3002<\/li>\n<li>BuildParams&#xff1a;\u4e5f\u662f\u4e00\u79cd\u88c5\u9970\u5668&#xff0c;\u7528\u4e8e\u4fee\u9970\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5185\u51fd\u6570\u7c7b\u578b\u7684\u5c5e\u6027&#xff0c;\u4e3b\u8981\u4f5c\u7528\u662f\u5141\u8bb8\u7236\u7ec4\u4ef6\u5411\u5b50\u7ec4\u4ef6\u4f20\u9012 UI \u7ed3\u6784&#xff0c;\u7c7b\u4f3c\u4e8e\u524d\u7aef\u4e2d Vue \u7684\u63d2\u69fd&#xff08;slot&#xff09;\u3002<\/li>\n<li id=\"u49c4e03a\">\u5b9a\u4e49\u4f4d\u7f6e\u4e0e\u8c03\u7528\u65b9\u5f0f<\/li>\n<li>Builder&#xff1a;\u53ef\u4ee5\u5b9a\u4e49\u5728\u7ec4\u4ef6\u5185\u6216\u5168\u5c40\u3002\u5728\u7ec4\u4ef6\u5185\u5b9a\u4e49\u7684Builder\u65b9\u6cd5\u53ef\u901a\u8fc7this\u8bbf\u95ee\u5f53\u524d\u7ec4\u4ef6\u7684\u5c5e\u6027\u548c\u65b9\u6cd5&#xff0c;\u5728\u7ec4\u4ef6\u7684build\u65b9\u6cd5\u548c\u5176\u4ed6\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570\u4e2d\u8c03\u7528&#xff1b;\u5168\u5c40\u7684Builder\u65b9\u6cd5\u53ef\u88ab\u6574\u4e2a\u5e94\u7528\u83b7\u53d6&#xff0c;\u4f46\u4e0d\u80fd\u4f7f\u7528this\u548cbind\u65b9\u6cd5\u3002<\/li>\n<li>BuildParams&#xff1a;\u901a\u5e38\u5728\u5b50\u7ec4\u4ef6\u4e2d\u5b9a\u4e49&#xff0c;\u5728\u7236\u7ec4\u4ef6\u4e2d\u4f20\u5165BuildParams\u5bf9\u5e94\u7684\u51fd\u6570\u6765\u4f7f\u7528\u3002\u8be5\u51fd\u6570\u53ef\u4ee5\u6ca1\u6709Builder\u4fee\u9970&#xff0c;\u4f46\u5fc5\u987b\u8c03\u7528\u4e00\u4e2aBuilder\u4fee\u9970\u7684\u51fd\u6570\u3002<\/li>\n<li id=\"u554f752f\">\u53c2\u6570\u4f20\u9012\u4e0e\u54cd\u5e94\u5f0f\u7279\u6027<\/li>\n<li>Builder&#xff1a;\u5177\u6709\u6309\u503c\u4f20\u9012\u548c\u6309\u5f15\u7528\u4f20\u9012\u4e24\u79cd\u53c2\u6570\u4f20\u9012\u673a\u5236\u3002\u6309\u5f15\u7528\u4f20\u9012\u65f6&#xff0c;\u82e5\u4f20\u9012\u7684\u53c2\u6570\u4e3a\u72b6\u6001\u53d8\u91cf&#xff0c;\u72b6\u6001\u53d8\u91cf\u7684\u53d8\u5316\u4f1a\u89e6\u53d1Builder\u65b9\u6cd5\u5185\u90e8 UI \u7684\u5237\u65b0&#xff1b;\u6309\u503c\u4f20\u9012\u65f6\u5219\u4e0d\u4f1a<\/li>\n<li>BuildParams&#xff1a;\u672c\u8eab\u4e0d\u76f4\u63a5\u6d89\u53ca\u53c2\u6570\u4f20\u9012\u7684\u54cd\u5e94\u5f0f\u95ee\u9898&#xff0c;\u5b83\u4e3b\u8981\u662f\u4f20\u9012 UI \u7ed3\u6784&#xff0c;\u7531\u4f20\u5165\u7684Builder\u4fee\u9970\u7684\u51fd\u6570\u6765\u5904\u7406\u53c2\u6570\u548c\u54cd\u5e94\u5f0f\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:left\">23\u3001\u7b80\u8ff0\u9e3f\u8499\u6253\u5305\u6d41\u7a0b<\/h4>\n<p id=\"ucf79c463\">\u9e3f\u8499\u6253\u5305\u6d41\u7a0b\u5305\u62ec&#xff1a;<\/p>\n<p id=\"u9c818600\">\u7f16\u8bd1\u6e90\u4ee3\u7801\u2f63\u6210\u4e2d\u95f4\u2f42\u4ef6\u3002<\/p>\n<p id=\"u6912ac60\">\u901a\u8fc7\u6784\u5efa\u2f2f\u5177&#xff08;\u5982DevEco Studio&#xff09;\u5c06\u4e2d\u95f4\u2f42\u4ef6\u6253\u5305\u4e3aHAP\u2f42\u4ef6\u3002<\/p>\n<p id=\"ud618511a\">\u2f63\u6210\u5e94\u2f64\u7684manifest\u2f42\u4ef6\u548c\u8d44\u6e90\u2f42\u4ef6\u3002<\/p>\n<p id=\"u7da34a1c\">\u8fdb\u2f8f\u7b7e\u540d\u548c\u52a0\u5bc6\u5904\u7406&#xff0c;\u786e\u4fdd\u5e94\u2f64\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p id=\"uc27584ad\">\u6700\u7ec8\u2f63\u6210\u53ef\u5b89\u88c5\u7684HAP\u2f42\u4ef6\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;text-align:left\">24\u3001\u00a0\u6570\u636e\u6301\u4e45\u5316\u7684\u2f45\u6848?<\/h4>\n<p id=\"ue261280e\">\u5728\u9e3f\u8499\u4e2d&#xff0c;\u6570\u636e\u6301\u4e45\u5316\u7684\u2f45\u6848\u5305\u62ec&#xff1a;<\/p>\n<p id=\"u12a5020f\">Preferences&#xff08;&#xff09;&#xff1a;\u2f64\u4e8e\u5b58\u50a8\u7b80\u5355\u7684\u952e\u503c\u5bf9\u6570\u636e&#xff0c;\u9002\u5408\u4fdd\u5b58\u2f64\u6237\u504f\u597d\u8bbe\u7f6e\u3002<\/p>\n<p id=\"u1c81552c\">\u6570\u636e\u5e93&#xff1a;\u4f7f\u2f64SQLite\u7b49\u6570\u636e\u5e93\u5b58\u50a8\u7ed3\u6784\u5316\u6570\u636e&#xff0c;\u9002\u5408\u590d\u6742\u7684\u67e5\u8be2\u548c\u6570\u636e\u7ba1\u7406\u3002<\/p>\n<p id=\"u88b98c12\">\u2f42\u4ef6\u5b58\u50a8&#xff1a;\u5c06\u6570\u636e\u4ee5\u2f42\u4ef6\u5f62\u5f0f\u5b58\u50a8\u5728\u8bbe\u5907\u4e0a&#xff0c;\u9002\u5408\u5b58\u50a8\u2f24\u2f42\u4ef6\u6216\u5a92\u4f53\u2f42\u4ef6\u3002<\/p>\n<p id=\"u072408c1\">\u5206\u5e03\u5f0f\u6570\u636e\u5b58\u50a8&#xff1a;\u2f64\u4e8e\u5728\u591a\u8bbe\u5907\u95f4\u540c\u6b65\u6570\u636e&#xff0c;\u2f40\u6301\u4e91\u7aef\u5b58\u50a8\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">25\u3001\u7ed9\u5bf9\u8c61\u505a\u7c7b\u578b\u53ef\u4ee5\u2f64\u54ea\u4e9b\u2f45\u5f0f? interface\u548ctype\u7684\u533a\u522b?<\/h4>\n<p id=\"u74299a72\">\u7ed9\u5bf9\u8c61\u8bbe\u7f6e\u7c7b\u578b\u53ef\u4ee5\u4f7f\u2f64interface\u548ctype\u5173\u952e\u5b57\u3002interface\u2f64\u4e8e\u5b9a\u4e49\u5bf9\u8c61\u7684\u7ed3\u6784&#xff0c;\u53ef\u4ee5\u88ab\u591a\u4e2a\u5bf9\u8c61<\/p>\n<p id=\"u16d6a0bd\">\u5b9e\u73b0&#xff1b;type\u2f64\u4e8e\u5b9a\u4e49\u66f4\u590d\u6742\u7684\u7c7b\u578b&#xff0c;\u5305\u62ec\u8054\u5408\u7c7b\u578b\u548c\u4ea4\u53c9\u7c7b\u578b&#xff0c;\u4e0d\u80fd\u88ab\u5b9e\u73b0&#xff0c;\u4f46\u53ef\u4ee5\u6269\u5c55\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:left\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:left\">26\u3001\u00a0\u9e3f\u8499\u7ec4\u4ef6\u662f\u5982\u4f55\u901a\u4fe1\u7684? &#064;provide&#xff08;&#xff09;\u548c&#064;consume&#xff08;&#xff09;\u7684\u4f7f\u2f64?<\/h4>\n<p id=\"u4c735657\">\u5728\u9e3f\u8499\u4e2d&#xff0c;\u7ec4\u4ef6\u4e4b\u95f4\u7684\u901a\u4fe1\u53ef\u4ee5\u901a\u8fc7&#064;provide\u548c&#064;consume\u88c5\u9970\u5668\u5b9e\u73b0\u3002&#064;provide\u2f64\u4e8e\u5728\u2f57\u7ec4\u4ef6<\/p>\n<p id=\"u8ba89e5d\">\u4e2d\u63d0\u4f9b\u6570\u636e\u6216\u72b6\u6001&#xff0c;&#064;consume\u2f64\u4e8e\u5728\u2f26\u7ec4\u4ef6\u4e2d\u83b7\u53d6\u8fd9\u4e9b\u6570\u636e\u3002\u901a\u8fc7\u8fd9\u79cd\u2f45\u5f0f&#xff0c;\u2f57\u2f26\u7ec4\u4ef6\u53ef\u4ee5\u5b9e\u73b0<\/p>\n<p id=\"u8b7e3f6f\">\u6570\u636e\u7684\u5171\u4eab\u548c\u72b6\u6001\u7684\u7ba1\u7406&#xff0c;\u907f\u514d\u4e86\u76f4\u63a5\u901a\u8fc7prop\u4f20\u9012\u7684\u590d\u6742\u6027\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;text-align:left\">27\u3001 \u9996\u9009\u9879\u901a\u8fc7\u4ec0\u4e48\u65b9\u5f0f\u5b58\u50a8&#xff1f;\u5b58\u50a8\u4ec0\u4e48\u5730\u65b9&#xff1f;<\/h4>\n<p>\u6570\u636e\u6301\u4e45\u5316&#xff1a;\u9996\u9009\u6570\u636e\u4f1a\u88ab\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u5373\u4f7f\u5e94\u7528\u7a0b\u5e8f\u5173\u95ed\u6216\u8bbe\u5907\u91cd\u542f&#xff0c;\u6570\u636e\u4e5f\u4e0d\u4f1a\u4e22\u5931\u3002\u8fd9\u662f\u901a\u8fc7\u9e3f\u8499\u7cfb\u7edf\u5f97\u5b58\u50a8\u673a\u5236\u6765\u5b9e\u73b0\u7684&#xff0c;\u5b83\u4f1a\u5c06\u9996\u9009\u9879\u6570\u636e\u4fdd\u5b58\u5728\u7279\u5b9a\u7684\u5b58\u50a8\u4f4d\u7f6e&#xff0c;\u786e\u4fdd\u6570\u636e\u7684\u6301\u4e45\u6027\u3002<\/p>\n<p>\u5e94\u7528\u79c1\u6709\u5b58\u50a8\u76ee\u5f55&#xff1a;\u9996\u9009\u9879\u901a\u5e38\u5b58\u50a8\u5728\u5e94\u7528\u7684\u79c1\u6709\u5b58\u50a8\u76ee\u5f55\u4e2d\u3002\u6bcf\u4e2a\u5e94\u7528\u5728\u8bbe\u5907\u4e0a\u90fd\u6709\u81ea\u5df1 \u72ec\u7acb\u7684\u79c1\u6709\u5b58\u50a8\u533a\u57df&#xff0c;\u5176\u4ed6\u5e94\u7528\u65e0\u6cd5\u76f4\u63a5\u8bbf\u95ee\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u9996\u9009\u9879\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u72ec\u7acb\u6027&#xff0c;\u4e0d\u540c\u5e94\u7528\u4e4b\u95f4\u7684\u6570\u636e\u4e0d\u4f1a\u76f8\u4e92\u5e72\u6270\u3002\u5177\u4f53\u7684\u5b58\u50a8\u8def\u5f84\u53ef\u80fd\u56e0\u8bbe\u5907\u548c\u9e3f\u8499\u7cfb\u7edf\u7248\u672c\u800c\u6709\u6240\u4e0d\u540c&#xff0c;\u4f46\u4e00\u822c\u6765\u8bf4&#xff0c;\u5b83\u662f\u5728\u5e94\u7528\u7684\u4e13\u5c5e\u5b58\u50a8\u76ee\u5f55\u4e0b\u7684\u4e00\u4e2a\u7279\u5b9a\u6587\u4ef6\u6216\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<\/p>\n<h4>28\u3001 \u8c08\u8c08\u5bf9\u751f\u547d\u5468\u671f\u7684\u7406\u89e3<\/h4>\n<p id=\"u3ccc68f6\">\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d&#xff0c;\u7406\u89e3\u751f\u547d\u5468\u671f\u81f3\u5173\u91cd\u8981&#xff0c;\u5b83\u6db5\u76d6\u4e86\u5e94\u7528\u3001\u9875\u9762\u548c\u7ec4\u4ef6\u7b49\u591a\u4e2a\u5c42\u9762\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u7406\u89e3&#xff1a;<\/p>\n<h4 id=\"d4O8a\">\u00a0\u5e94\u7528\u751f\u547d\u5468\u671f&#xff1a;<\/h4>\n<ul>\n<li id=\"uf0dfd805\">\u6982\u5ff5&#xff1a;\u6307\u4ece\u5e94\u7528\u542f\u52a8\u5230\u9500\u6bc1\u7684\u6574\u4e2a\u8fc7\u7a0b&#xff0c;\u5305\u62ec\u5e94\u7528\u7684\u521b\u5efa\u3001\u521d\u59cb\u5316\u3001\u524d\u53f0\u8fd0\u884c\u3001\u540e\u53f0\u8fd0\u884c\u548c\u9500\u6bc1\u7b49\u9636\u6bb5\u3002\u00a0<\/li>\n<li id=\"u877efcdd\">\u4f5c\u7528&#xff1a;\u901a\u8fc7\u7279\u5b9a\u7684\u56de\u8c03\u51fd\u6570\u6765\u5b9e\u73b0\u5404\u4e2a\u9636\u6bb5&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u8fd9\u4e9b\u56de\u8c03\u4e2d\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c&#xff0c;\u5982\u5728\u521b\u5efa\u9636\u6bb5\u521d\u59cb\u5316\u5e94\u7528\u6240\u9700\u7684\u6570\u636e\u548c\u8d44\u6e90&#xff0c;\u5728\u9500\u6bc1\u9636\u6bb5\u91ca\u653e\u6240\u6709\u5360\u7528\u7684\u7cfb\u7edf\u8d44\u6e90&#xff0c;\u5e76\u4fdd\u5b58\u5fc5\u8981\u7684\u6570\u636e\u3002<\/li>\n<li id=\"u959294cb\">\u5177\u4f53\u51fd\u6570&#xff1a;<\/li>\n<\/ul>\n<li id=\"ud379e9e3\">onCreate()&#xff1a;\u5e94\u7528\u521b\u5efa\u65f6\u8c03\u7528&#xff0c;\u7528\u4e8e\u8fdb\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u64cd\u4f5c&#xff0c;\u6bd4\u5982\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u3001\u521d\u59cb\u5316\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u3002<\/li>\n<li id=\"u6af91756\">onWindowStageCreate()&#xff1a;WindowStage\u521b\u5efa\u5b8c\u6210\u540e\u8c03\u7528&#xff0c;\u53ef\u4ee5\u5728\u6b64\u8bbe\u7f6eUI\u52a0\u8f7d\u3001\u8bbe\u7f6eWindowStage\u7684\u4e8b\u4ef6\u8ba2\u9605\u7b49\u3002<\/li>\n<li id=\"ud400dc26\">onForeground()&#xff1a;\u5e94\u7528\u8fdb\u5165\u524d\u53f0\u65f6\u8c03\u7528&#xff0c;\u53ef\u5728\u6b64\u6062\u590d\u5728\u540e\u53f0\u65f6\u6682\u505c\u7684\u64cd\u4f5c&#xff0c;\u5982\u91cd\u65b0\u7533\u8bf7\u5728\u540e\u53f0\u4e2d\u91ca\u653e\u7684\u8d44\u6e90&#xff0c;\u51c6\u5907\u5e94\u7528\u7684\u524d\u53f0\u8fd0\u884c\u3002<\/li>\n<li id=\"uc84966d2\">onBackground()&#xff1a;\u5e94\u7528\u8fdb\u5165\u540e\u53f0\u65f6\u8c03\u7528&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u6b64\u91ca\u653e\u4e00\u4e9b\u6682\u65f6\u4e0d\u9700\u8981\u7684\u8d44\u6e90&#xff0c;\u6216\u8005\u6267\u884c\u4e00\u4e9b\u540e\u53f0\u4efb\u52a1&#xff0c;\u4f46\u8981\u6ce8\u610f\u907f\u514d\u957f\u65f6\u95f4\u963b\u585e&#xff0c;\u4ee5\u514d\u5f71\u54cd\u7cfb\u7edf\u6027\u80fd\u3002<\/li>\n<li id=\"u84e85193\">onWindowStageDestroy()&#xff1a;\u5728UIAbility\u5b9e\u4f8b\u9500\u6bc1\u4e4b\u524d&#xff0c;WindowStage\u9500\u6bc1\u65f6\u8c03\u7528&#xff0c;\u53ef\u4ee5\u5728\u6b64\u91ca\u653eUI\u8d44\u6e90\u3002<\/li>\n<li id=\"u6aea75ad\">onDestroy()&#xff1a;\u5e94\u7528\u9500\u6bc1\u65f6\u89e6\u53d1&#xff0c;\u7528\u4e8e\u8fdb\u884c\u4e00\u4e9b\u8d44\u6e90\u6e05\u7406\u548c\u6570\u636e\u4fdd\u5b58\u7684\u64cd\u4f5c&#xff0c;\u6bd4\u5982\u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5\u3001\u4fdd\u5b58\u7528\u6237\u672a\u4fdd\u5b58\u7684\u6570\u636e\u7b49\u3002<\/li>\n<h4 id=\"OGJDM\">\u00a0\u9875\u9762\u751f\u547d\u5468\u671f&#xff1a;<\/h4>\n<ul>\n<li id=\"u8c0ddd39\">\u6982\u5ff5&#xff1a;\u4e3b\u8981\u9488\u5bf9&#064;Entry\u4fee\u9970\u7684\u7ec4\u4ef6&#xff0c;\u5373\u9875\u9762\u3002<\/li>\n<li id=\"u6e0598a7\">\u4f5c\u7528&#xff1a;\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7ba1\u7406\u9875\u9762\u7684\u663e\u793a\u548c\u9690\u85cf&#xff0c;\u4ee5\u53ca\u5904\u7406\u9875\u9762\u95f4\u7684\u8df3\u8f6c\u7b49\u60c5\u51b5&#xff0c;\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/li>\n<li id=\"u5a5da4d7\">\u5177\u4f53\u51fd\u6570&#xff1a;<\/li>\n<\/ul>\n<li id=\"u2ce1d8c4\">aboutToAppear()&#xff1a;\u9875\u9762\u5373\u5c06\u663e\u793a\u65f6\u8c03\u7528&#xff0c;\u53ef\u5728\u6b64\u8fdb\u884c\u4e00\u4e9b\u9875\u9762\u663e\u793a\u524d\u7684\u51c6\u5907\u5de5\u4f5c&#xff0c;\u5982\u52a0\u8f7d\u9875\u9762\u6570\u636e\u3001\u521d\u59cb\u5316\u9875\u9762\u7ec4\u4ef6\u7b49\u3002<\/li>\n<li id=\"u3cfd9fa3\">aboutToDisappear()&#xff1a;\u9875\u9762\u5373\u5c06\u9690\u85cf\u65f6\u8c03\u7528&#xff0c;\u7528\u4e8e\u8fdb\u884c\u4e00\u4e9b\u6e05\u7406\u64cd\u4f5c&#xff0c;\u5982\u53d6\u6d88\u9875\u9762\u4e2d\u7684\u5b9a\u65f6\u5668\u3001\u4fdd\u5b58\u9875\u9762\u4e34\u65f6\u6570\u636e\u7b49\u3002<\/li>\n<li id=\"ubacaac26\">onPageShow()&#xff1a;\u9875\u9762\u6bcf\u6b21\u663e\u793a\u65f6\u89e6\u53d1\u4e00\u6b21&#xff0c;\u5305\u62ec\u8def\u7531\u8fc7\u7a0b\u3001\u5e94\u7528\u8fdb\u5165\u524d\u53f0\u7b49\u573a\u666f&#xff0c;\u53ef\u5728\u6b64\u66f4\u65b0\u9875\u9762\u7684\u72b6\u6001\u6216\u6267\u884c\u4e00\u4e9b\u4e0e\u9875\u9762\u663e\u793a\u76f8\u5173\u7684\u903b\u8f91\u3002<\/li>\n<li id=\"u4b355683\">onPageHide()&#xff1a;\u9875\u9762\u9690\u85cf\u65f6\u89e6\u53d1&#xff0c;\u53ef\u7528\u4e8e\u6682\u505c\u9875\u9762\u4e2d\u7684\u4e00\u4e9b\u52a8\u753b\u6216\u64cd\u4f5c&#xff0c;\u4ee5\u8282\u7701\u8d44\u6e90\u3002<\/li>\n<li id=\"u0e2c6b31\">onBackPress()&#xff1a;\u5f53\u7528\u6237\u70b9\u51fb\u8fd4\u56de\u6309\u94ae\u65f6\u89e6\u53d1&#xff0c;\u53ef\u5728\u6b64\u5904\u7406\u8fd4\u56de\u64cd\u4f5c&#xff0c;\u5982\u786e\u8ba4\u662f\u5426\u4fdd\u5b58\u6570\u636e\u3001\u662f\u5426\u5141\u8bb8\u8fd4\u56de\u7b49\u3002<\/li>\n<h4 id=\"k9vNx\">\u7ec4\u4ef6\u751f\u547d\u5468\u671f<\/h4>\n<ul>\n<li id=\"u8e77437c\">\u6982\u5ff5&#xff1a;\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4ece\u521b\u5efa\u5230\u9500\u6bc1\u6216\u590d\u7528\u7684\u8fc7\u7a0b\u3002<\/li>\n<li id=\"u6f7bd22d\">\u4f5c\u7528&#xff1a;\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u5728\u7ec4\u4ef6\u7684\u4e0d\u540c\u9636\u6bb5\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c&#xff0c;\u5982\u521d\u59cb\u5316\u7ec4\u4ef6\u72b6\u6001\u3001\u91ca\u653e\u7ec4\u4ef6\u8d44\u6e90\u7b49&#xff0c;\u6709\u52a9\u4e8e\u63d0\u9ad8\u7ec4\u4ef6\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u6027\u80fd\u3002<\/li>\n<li id=\"ub5158a40\">\u5177\u4f53\u51fd\u6570&#xff1a;<\/li>\n<\/ul>\n<li id=\"u557c2a7a\">aboutToAppear()&#xff1a;\u7ec4\u4ef6\u5373\u5c06\u663e\u793a\u65f6\u8c03\u7528&#xff0c;\u7c7b\u4f3c\u4e8e\u9875\u9762\u7684aboutToAppear&#xff0c;\u53ef\u7528\u4e8e\u7ec4\u4ef6\u7684\u521d\u59cb\u5316\u64cd\u4f5c\u3002<\/li>\n<li id=\"ue337931b\">aboutToDisappear()&#xff1a;\u7ec4\u4ef6\u5373\u5c06\u9690\u85cf\u65f6\u8c03\u7528&#xff0c;\u7528\u4e8e\u6e05\u7406\u7ec4\u4ef6\u76f8\u5173\u8d44\u6e90\u3002<\/li>\n<h4><\/h4>\n<h4>29\u3001\u4f7f\u7528\u8fc7\u54ea\u4e9b\u7b2c\u4e09\u65b9\u5e93&#xff1f;\u5206\u522b\u4ecb\u7ecd\u4e00\u4e0b<\/h4>\n<p id=\"uae2374dd\">axios&#xff1a;\u2f64\u4e8e\u5904\u7406HTTP\u8bf7\u6c42\u7684\u5e93&#xff0c;\u2f40\u6301Promise\u3002<\/p>\n<p id=\"ufdc6c44f\">lodash&#xff1a;\u63d0\u4f9b\u5b9e\u2f64\u2f2f\u5177\u51fd\u6570\u7684\u5e93&#xff0c;\u4fbf\u4e8e\u6570\u636e\u5904\u7406\u3002<\/p>\n<h4><\/h4>\n<h4>30\u3001ForEach\u6709\u51e0\u4e2a\u53c2\u6570&#xff1f;<\/h4>\n<p id=\"u50d9364b\">forEach\u63a5\u53d7\u4e09\u4e2a\u53c2\u6570&#xff1a;\u5f53\u524d\u5143\u7d20\u3001\u5f53\u524d\u7d22\u5f15\u548c\u539f\u6570\u7ec4\u3002<\/p>\n<h4><\/h4>\n<h4>31\u3001\u00a0api9 \/ api11 \/ api12 \u7684\u533a\u522b?<\/h4>\n<ul>\n<li id=\"u8d268ba4\">\u8bed\u6cd5\u65b9\u9762&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li id=\"ue9340dab\">API 9&#xff1a;\u5728\u8bed\u6cd5\u4e0a\u76f8\u5bf9\u8f83\u4e3a\u5bbd\u677e&#xff0c;\u652f\u6301\u51fd\u6570\u8868\u8fbe\u5f0f\u3001\u5c55\u5f00\u8fd0\u7b97\u7b26\u7528\u4e8e\u5bf9\u8c61\u3001\u8d4b\u503c\u89e3\u6784&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528 var \u5173\u952e\u5b57\u58f0\u660e\u53d8\u91cf&#xff0c;\u58f0\u660e\u53d8\u91cf\u65f6\u4e0d\u5f3a\u5236\u8981\u6c42\u5b9a\u4e49\u7c7b\u578b\u3002<\/li>\n<li id=\"u503372d1\">API 11&#xff1a;\u4e0e API 9 \u76f8\u6bd4&#xff0c;\u8bed\u6cd5\u4e0a\u6709\u4e86\u4e00\u4e9b\u53d8\u5316\u548c\u9650\u5236\u3002\u51fd\u6570\u8868\u8fbe\u5f0f\u4e0d\u518d\u88ab\u652f\u6301&#xff0c;\u5fc5\u987b\u4f7f\u7528\u7bad\u5934\u51fd\u6570&#xff1b;\u5c55\u5f00\u8fd0\u7b97\u7b26\u4ec5\u652f\u6301\u6570\u7ec4&#xff1b;\u4e0d\u518d\u652f\u6301\u8d4b\u503c\u89e3\u6784&#xff1b;var \u5173\u952e\u5b57\u4e0d\u518d\u88ab\u652f\u6301&#xff0c;\u5fc5\u987b\u4f7f\u7528 let \u6216 const \u6765\u58f0\u660e\u53d8\u91cf&#xff1b;\u7c7b\u578b\u9650\u5236\u66f4\u4e3a\u4e25\u683c&#xff0c;\u58f0\u660e\u53d8\u91cf\u65f6\u540e\u9762\u5fc5\u987b\u5b9a\u4e49\u7c7b\u578b\u3002<\/li>\n<li id=\"u7b4dc789\">API 12&#xff1a;\u672a\u5728\u8bed\u6cd5\u5c42\u9762\u6709\u4e0e API 11 \u8f83\u5927\u5dee\u5f02\u7684\u516c\u5f00\u4fe1\u606f&#xff0c;\u4f46\u968f\u7740\u7cfb\u7edf\u548c\u5f00\u53d1\u73af\u5883\u7684\u6f14\u8fdb&#xff0c;\u53ef\u80fd\u5b58\u5728\u4e00\u4e9b\u7ec6\u5fae\u8c03\u6574\u6216\u4f18\u5316\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li id=\"u6ef6e998\">\u7cfb\u7edf\u517c\u5bb9\u6027\u65b9\u9762&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li id=\"u46ef9c39\">API 9&#xff1a;\u901a\u5e38\u4e0e HarmonyOS 3.1 \u548c HarmonyOS 4.0 \u517c\u5bb9\u3002<\/li>\n<li id=\"u46cd76ba\">API 11&#xff1a;\u53ef\u80fd\u4e0e\u66f4\u65b0\u7684 HarmonyOS \u7248\u672c\u6216 HarmonyOS Next \u6709\u66f4\u597d\u7684\u517c\u5bb9\u6027\u3002\u7531\u4e8e HarmonyOS Next \u53bb\u9664\u4e86 AOSP \u517c\u5bb9\u6027&#xff0c;\u5e76\u4e14 SDK \u7248\u672c\u4e4b\u95f4\u6ca1\u6709\u76f4\u63a5\u7684\u5bf9\u5e94\u5173\u7cfb&#xff0c;\u5f00\u53d1\u8005\u9700\u8981\u7279\u522b\u5173\u6ce8\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/li>\n<li id=\"uac338dd9\">API 12&#xff1a;\u4e3b\u8981\u9762\u5411 HarmonyOS Next \u7248\u672c&#xff0c;\u968f\u7740 HarmonyOS Next \u7684\u53d1\u5c55\u548c\u5b8c\u5584&#xff0c;API 12 \u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u652f\u6301\u548c\u9002\u914d&#xff0c;\u80fd\u5145\u5206\u5229\u7528 HarmonyOS Next \u7684\u65b0\u7279\u6027\u548c\u4f18\u52bf\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li id=\"u84d46457\">\u529f\u80fd\u7279\u6027\u65b9\u9762&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li id=\"udb278739\">API 9&#xff1a;\u5177\u5907\u57fa\u7840\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u80fd\u529b\u3001\u591a\u79cd\u5f00\u53d1\u8bed\u8a00\u652f\u6301\u7b49\u9e3f\u8499\u7cfb\u7edf\u7684\u6838\u5fc3\u7279\u6027\u3002<\/li>\n<li id=\"u3028ddbb\">API 11&#xff1a;ArkUI \u8fdb\u4e00\u6b65\u5b8c\u5584\u7ec4\u4ef6\u80fd\u529b\u548c\u6548\u679c&#xff0c;\u5982\u6587\u672c\u548c\u5bb9\u5668\u7c7b\u7ec4\u4ef6\u652f\u6301\u6309\u5b57\u7b26\u622a\u65ad\u3001\u5b9a\u5236\u56de\u8f66\u952e\u884c\u4e3a\u7b49&#xff1b;\u589e\u5f3a\u4e86\u56fe\u5f62\u7a97\u53e3\u7684\u52a8\u6548\u548c\u7a97\u53e3\u9002\u914d\u80fd\u529b&#xff1b;\u5e94\u7528\u6846\u67b6\u589e\u5f3a\u4e86 Extension \u80fd\u529b&#xff0c;\u63d0\u4f9b\u81ea\u52a8\u586b\u5145\u6846\u67b6\u7b49&#xff1b;\u5206\u5e03\u5f0f\u8f6f\u603b\u7ebf\u8fde\u63a5\u80fd\u529b\u548c\u89c4\u683c\u8fdb\u4e00\u6b65\u589e\u5f3a\u3002<\/li>\n<li id=\"u76bd75ef\">API 12&#xff1a;\u5728\u591a\u4e2a\u6a21\u5757\u90fd\u6709\u663e\u8457\u7684\u65b0\u589e\u548c\u6539\u8fdb\u529f\u80fd\u3002\u5982 Ability Kit \u65b0\u589e\u652f\u6301 want \u5c5e\u6027\u4e2d parameter \u53c2\u6570\u7684\u66f4\u591a\u63cf\u8ff0\u4fe1\u606f&#xff1b;ArkUI \u652f\u6301\u83b7\u53d6\u72b6\u6001\u7ba1\u7406\u6846\u67b6\u4ee3\u7406\u524d\u7684\u539f\u59cb\u5bf9\u8c61\u3001\u901a\u8fc7 C-API \u83b7\u53d6\u7ec4\u4ef6\u6807\u8bc6 ID \u7b49&#xff1b;Camera Kit \u65b0\u589e\u4e00\u6279 C-API \u4ee5\u5b8c\u5584\u76f8\u673a\u80fd\u529b&#xff1b;Device Security Kit \u65b0\u589e\u5b89\u5168\u5ba1\u8ba1 API \u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li id=\"u91a775df\">\u5b89\u5168\u4e0e\u9690\u79c1\u65b9\u9762&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li id=\"u941288eb\">API 9&#xff1a;\u6709\u57fa\u7840\u7684\u5b89\u5168\u4e0e\u9690\u79c1\u4fdd\u62a4\u673a\u5236&#xff0c;\u4e3a\u5e94\u7528\u5f00\u53d1\u63d0\u4f9b\u4e86\u4e00\u5b9a\u7684\u5b89\u5168\u4fdd\u969c\u548c\u9690\u79c1\u4fdd\u62a4\u529f\u80fd\u3002<\/li>\n<li id=\"u860afe53\">API 11&#xff1a;\u5f15\u5165\u66f4\u4e25\u683c\u7684\u6743\u9650\u7ba1\u7406\u3001\u66f4\u5b89\u5168\u7684\u6570\u636e\u5b58\u50a8\u548c\u4f20\u8f93\u673a\u5236\u3001\u4ee5\u53ca\u66f4\u5b8c\u5584\u7684\u7528\u6237\u9690\u79c1\u4fdd\u62a4\u63aa\u65bd\u3002<\/li>\n<li id=\"u31642090\">API 12&#xff1a;\u5728 API 11 \u7684\u57fa\u7840\u4e0a&#xff0c;\u53ef\u80fd\u8fdb\u4e00\u6b65\u5f3a\u5316\u4e86\u5b89\u5168\u4e0e\u9690\u79c1\u65b9\u9762\u7684\u529f\u80fd&#xff0c;\u4f8b\u5982 Device Security Kit \u65b0\u589e\u7684\u5b89\u5168\u5ba1\u8ba1 API&#xff0c;\u53ef\u83b7\u53d6\u7a97\u53e3\u622a\u5c4f\u4e8b\u4ef6\u3001USB \u63d2\u62d4\u4e8b\u4ef6\u3001\u526a\u5207\u677f\u590d\u5236\u7c98\u8d34\u4e8b\u4ef6\u7b49\u5ba1\u8ba1\u6570\u636e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><\/h4>\n<h4>32\u3001\u4e86\u89e3\u8fc7\u591a\u7ebf\u7a0b\u5417&#xff1f;\u548c Promise \u533a\u522b\u662f\u4ec0\u4e48&#xff1f;<\/h4>\n<p id=\"u9e282cf6\">\u591a\u7ebf\u7a0b\u5141\u8bb8\u540c\u65f6\u6267\u2f8f\u591a\u4e2a\u7ebf\u7a0b&#xff0c;\u2f7dPromise\u2f64\u4e8e\u5904\u7406\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u5355\u7ebf\u7a0b\u4e2d\u7ba1\u7406\u64cd\u4f5c\u987a\u5e8f\u3002<\/p>\n<h4><\/h4>\n<h4>33\u3001\u5355\u5c42\u67b6\u6784\u548c\u4e09\u5c42\u67b6\u6784\u533a\u522b&#xff1f;<\/h4>\n<p>\u7ed3\u6784\u590d\u6742\u6027<\/p>\n<p>\u5355\u5c42\u67b6\u6784&#xff1a;\u5355\u5c42\u67b6\u6784\u7684\u7ed3\u6784\u76f8\u5bf9\u6765\u8bf4\u7b80\u5355&#xff0c;\u56e0\u4e3a\u5b83\u5c06\u6240\u6709\u7684\u529f\u80fd\u6a21\u5757\u90fd\u96c6\u4e2d\u5728\u4e00\u5757\u5b9e\u73b0\u3002\u8fd9\u79cd\u67b6\u6784\u9002\u7528\u4e8e\u5c0f\u578b\u5e94\u7528\u6216\u539f\u578b\u5f00\u53d1\u3002<\/p>\n<p>\u4e09\u5c42\u67b6\u6784&#xff1a;\u4e09\u5c42\u67b6\u6784\u5c06\u6574\u4e2a\u7cfb\u7edf\u5212\u5206\u4e3a\u4e09\u4e2a\u903b\u8f91\u5c42\u9762&#xff0c;\u6bcf\u4e2a\u5c42\u9762\u8d1f\u8d23\u4e0d\u540c\u7684 \u4e1a\u52a1&#xff0c;\u901a\u8fc7\u5206\u5c42\u53ef\u4ee5\u964d\u4f4e\u7cfb\u7edf\u7684\u8026\u5408\u5ea6&#xff0c;\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<p>\u53ef\u7ef4\u62a4\u6027<\/p>\n<p>\u5355\u5c42\u67b6\u6784&#xff1a;\u5355\u5c42\u67b6\u6784\u4e00\u65e6\u9700\u8981\u5bf9\u67d0\u4e2a\u529f\u80fd\u8fdb\u884c\u6539\u52a8&#xff0c;\u53ef\u80fd\u9700\u8981\u89e6\u53ca\u5230\u6574\u4e2a\u5e94\u7528\u7684\u591a\u4e2a\u90e8\u5206&#xff0c;<\/p>\n<p>\u4e09\u5c42\u67b6\u6784&#xff1a;\u4e09\u5c42\u67b6\u6784\u6bcf\u4e00\u5c42\u90fd\u53ef\u4ee5\u72ec\u7acb\u5730\u60ca\u9192\u4fee\u6539\u548c\u6269\u5c55&#xff0c;\u4e0d\u5f71\u54cd\u5176\u4ed6\u5c42\u6b21\u3002<\/p>\n<p>\u5b89\u5168\u6027<\/p>\n<p>\u5355\u5c42\u67b6\u6784&#xff1a;\u5355\u5c42\u67b6\u6784&#xff0c;\u7531\u4e8e\u6240\u6709\u7684\u529f\u80fd\u90fd\u96c6\u4e2d\u5728\u4e00\u4e2a\u5730\u65b9&#xff0c;\u6709\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u6f0f\u6d1e\u66f4\u5bb9\u6613\u88ab\u5229\u7528\u3002<\/p>\n<p>\u4e09\u5c42\u67b6\u6784&#xff1a;\u4e09\u5c42\u67b6\u6784\u5206\u5c42\u9694\u79bb\u4e86\u4e0d\u540c\u6a21\u5757&#xff0c;\u5b89\u5168\u6027\u8f83\u9ad8\u3002<\/p>\n<p>\u6027\u80fd<\/p>\n<p>\u5355\u5c42\u67b6\u6784&#xff1a;\u5355\u5c42\u67b6\u6784\u7684\u6027\u80fd\u6bd4\u8f83\u53d7\u9650&#xff0c;\u968f\u7740\u7528\u6237\u6570\u91cf\u7684\u589e\u52a0&#xff0c;\u54cd\u5e94\u65f6\u95f4\u53ef\u80fd\u4f1a\u8fb9\u957f&#xff0c;\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u4e09\u5c42\u67b6\u6784:\u4e09\u5c42\u67b6\u6784\u53ef\u4ee5\u901a\u8fc7\u8d1f\u8377\u5747\u8861\u548c\u5206\u5e03\u5f0f\u5904\u7406\u6765\u4f18\u5316\u6027\u80fd\u3002\u4f8b\u5982&#xff0c;\u53ef\u4ee5\u5b50\u554a\u524d\u7aef\u4f7f\u7528\u5185\u5bb9\u5206\u53d1\u7f51\u7edc&#xff08;CDN&#xff09;\u6765\u52a0\u901f\u9759\u6001\u8d44\u6e90\u7684\u52a0\u8f7d&#xff0c;\u5728\u540e\u7aef\u4f7f\u7528\u591a\u4e2a\u5e94\u7528\u670d\u52a1\u5668\u6765\u5206\u62c5\u8bf7\u6c42\u538b\u529b\u3002<\/p>\n<p>\u4f7f\u7528\u573a\u666f<\/p>\n<p>\u5355\u5c42\u67b6\u6784&#xff1a;\u5355\u5c42\u67b6\u6784\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u539f\u578b\u5f00\u53d1&#xff0c;\u4e00\u822c\u662f\u9879\u76ee\u89c4\u6a21\u8f83\u5c0f&#xff0c;\u9884\u7b97\u6709\u9650\u6216\u65f6\u95f4\u7d27\u8feb\u65f6<\/p>\n<p>\u4e09\u5c42\u67b6\u6784&#xff1a;\u4e09\u5c42\u67b6\u6784\u9002\u7528\u4e8e\u5927\u578b\u4f01\u4e1a\u7ea7\u5e94\u7528\u3001\u9ad8\u590d\u6742\u5ea6\u7cfb\u7edf\u6216\u9700\u8981\u957f\u671f\u7ef4\u62a4\u548c\u6269\u5c55\u7684\u9879\u76ee\u3002<\/p>\n<\/p>\n<h4 style=\"text-align:justify\">34\u3001ArkTs\u548c\u5176\u4ed6\u524d\u7aef\u7684\u533a\u522b<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"background-color:#ffff00\">\u8bed\u6cd5<\/span>&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"background-color:#ffff00\">ArkTS <\/span>\u662f\u9e3f\u8499\u5f00\u53d1\u4e2d\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00&#xff0c;\u57fa\u4e8e Type &#8211; Script \u8bed\u6cd5\u98ce\u683c&#xff0c;\u5177\u6709\u5f3a\u7c7b\u578b\u7279\u6027\u3002\u5b83\u91c7\u7528\u58f0\u660e\u5f0f\u7f16\u7a0b\u6765\u6784\u5efa\u7528\u6237\u754c\u9762&#xff0c;\u901a\u8fc7\u7ec4\u4ef6\u548c\u5c5e\u6027\u7684\u7ec4\u5408\u63cf\u8ff0 UI \u72b6\u6001\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"background-color:#ffff00\">Vue <\/span>\u4e5f\u662f\u58f0\u660e\u5f0f\u7684 UI \u6846\u67b6&#xff0c;\u5b83\u7684\u8bed\u6cd5&#xff08;template&#xff09;\u57fa\u4e8e HTML \u6269\u5c55\u6765\u7684\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"background-color:#ffff00\">Flutter <\/span>\u4f7f\u7528 Dart \u8bed\u8a00&#xff0c;\u91c7\u7528\u58f0\u660e\u5f0f\u7f16\u7a0b\u6784\u5efa UI\u3002\u5b83\u901a\u8fc7\u7ec4\u5408\u5404\u79cd Widget \u6765\u521b\u5efa\u754c\u9762&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">Dart \u8bed\u8a00\u672c\u8eab\u662f\u9762\u5411\u5bf9\u8c61\u7684&#xff0c;\u8bed\u6cd5\u4e0a\u548c Type &#8211; Script\u3001JavaScript \u6709\u4e00\u5b9a\u5dee\u5f02&#xff0c;\u5177\u6709\u7c7b\u578b\u5b89\u5168\u3001\u9ad8\u6548\u7684\u7279\u70b9<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"background-color:#ffff00\">\u8de8\u5e73\u53f0\u80fd\u529b&#xff1a;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">ArkTS\u662f\u4e3b\u8981\u4e13\u6ce8\u4e8e\u9e3f\u8499\u751f\u6001\u7cfb\u7edf\u5185\u7684\u8de8\u8bbe\u5907\u5f00\u53d1&#xff0c;\u5206\u5e03\u5f0f\u80fd\u529b<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">Vue\u4e3b\u8981\u7528\u4e8e Web \u5f00\u53d1&#xff0c;\u5728\u8de8\u5e73\u53f0\u65b9\u9762&#xff0c;\u76f8\u5bf9\u6765\u8bf4\u6ca1\u6709 ArkTS\u3002Flutter \u90a3\u6837\u539f\u751f\u7684\u8de8\u5e73\u53f0\u652f\u6301\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">Flutter\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\u5f00\u53d1&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4e00\u5957\u4ee3\u7801\u6784\u5efa\u51fa\u00a0iOS \u548c Android \u5e94\u7528&#xff0c;\u5e76\u4e14\u5728\u684c\u9762\u7aef&#xff08;\u5982 Windows\u3001Mac\u3001Linux&#xff09;\u4e5f\u6709\u4e00\u5b9a\u7684\u652f\u6301\u3002\u4f46\u5728\u975e\u79fb\u52a8\u5e73\u53f0\u7684\u751f\u6001\u6574\u5408\u65b9\u9762\u53ef\u80fd\u4e0d\u5982 ArkTS \u5728\u9e3f\u8499\u751f\u6001\u7cfb\u7edf\u4e2d\u90a3\u6837\u6df1\u5165\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">35\u3001&#064;Builder\u548c&#064;BuilderParam &#xff0c;this\u6307\u5411<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\">builder\u662f\u7528\u6765\u5b9a\u4e49\u6216\u8005\u62bdUI\u7ed3\u6784&#xff0c;builderparam\u662f\u7528\u6765\u5e94\u7528builder\u8fd9\u4e2aUI\u7ed3\u6784\u7684&#xff0c;\u5982\u679c\u60f3\u8981\u5728\u7236\u7ec4\u4ef6\u91cd\u5199UI\u7ed3\u6784&#xff0c;\u5c31\u53ef\u4ee5\u4f7f\u7528builderparam\u6765\u4f20\u9012\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#064;builder\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570\u901a\u5e38\u7528\u4e8e\u81ea\u5b9a\u4e49\u4e00\u4e9b\u91cd\u590d\u4f7f\u7528\u7684UI\u7ed3\u6784&#xff0c;\u800c&#064;builderParam\u5219\u662f\u7528\u6765\u5f15\u7528&#xff0c;\u4f20\u9012\u81ea\u5b9a\u4e49\u7684&#064;builder\u7ed3\u6784&#xff0c;&#064;builderParam\u88c5\u9970\u7684\u65b9\u6cd5\u53ea\u80fd\u88ab\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570&#xff08;&#064;Builder\u88c5\u9970\u7684\u65b9\u6cd5&#xff09;\u521d\u59cb\u5316<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u6bd4\u65b9\u8bf4\u5728\u5728\u5b50\u7ec4\u4ef6\u5b9a\u4e49\u4e86\u4e00\u4e2acustombuilder\u548c\u4e00\u4e2acustomThisBuilder\u8fd9\u4e24\u4e2a\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570&#xff0c;\u5e76\u4e14\u5b9a\u4e49\u4e86\u4e0e\u4e4b\u5bf9\u5e94\u7684&#064;builderParam\u3002\u7136\u540e\u5b50\u554a\u7236\u7ec4\u4ef6\u5b9a\u4e49\u4e00\u4e2acomponentBuilder\u3002\u5982\u679c\u5728\u7236\u7ec4\u4ef6\u8c03\u7528componentBuilder&#xff0c;\u90a3\u4e48this\u6307\u5b9a\u7684\u5c31\u662f\u7236\u7ec4\u4ef6\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5728\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570\u540e\u9762\u7684\u62ec\u53f7\u4f20\u9012\u5757\u90a3\u53ef\u4ee5\u4f7f\u7528<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u81ea\u5b9a\u4e49\u7ec4\u4ef6<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"238\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055054-6817003e2c50a.png\" width=\"812\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h4 style=\"text-align:justify\">36\u3001Http\u548caxios\u7684\u533a\u522b<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u9e3f\u8499\u539f\u751fhttp\u9996\u5148\u5728\u6027\u80fd\u548c\u517c\u5bb9\u6027\u4e0a\u6bd4\u8f83\u6709\u4fdd\u969c&#xff0c;\u539f\u751fAPI\u5b89\u5168\u6027\u65b9\u9762&#xff0c;\u7531\u4e8e\u6709\u9e3f\u8499\u7cfb\u7edf\u7684\u5b89\u5168\u673a\u5236&#xff0c;\u5728\u6570\u636e\u4f20\u8f93\u65b9\u9762\u4e5f\u662f\u5148\u5929\u7684\u4f18\u52bf\u3002\u5728\u8d44\u6e90\u5360\u7528\u8fd9\u5757\u4e5f\u633a\u4e0d\u9519\u7684&#xff0c;\u6bd5\u7adf\u662f\u7cfb\u7edf\u539f\u751f\u7684\u561b&#xff0c;\u4e0d\u4f1a\u50cf\u5f15\u5165\u90a3\u4e9b\u7b2c\u4e09\u65b9\u5e93\u4f3c\u7684&#xff0c;\u5e26\u6765\u989d\u5916\u7684\u8d44\u6e90\u5f00\u9500&#xff0c;\u8981\u662f\u8bbe\u5907\u8d44\u6e90\u6bd4\u8f83\u7d27\u5f20&#xff0c;\u6216\u8005\u5bf9\u6027\u80fd\u8981\u6c42\u633a\u9ad8\u7684\u573a\u666f&#xff0c;\u7528\u5b83\u5c31\u633a\u5408\u9002\u7684\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">axios\u7684\u8bdd\u591a\u4e86\u70b9\u529f\u80fd&#xff0c;\u50cf\u8bf7\u6c42\u548c\u54cd\u5e94\u62e6\u622a\u5668&#xff0c;\u5728\u53d1\u8bf7\u6c42\u524d\u6216\u8005\u6536\u5230\u54cd\u5e94\u540e&#xff0c;\u90fd\u80fd\u65b9\u4fbf\u5730\u505a\u4e9b\u9884\u5904\u7406\u3001\u5904\u7406\u9519\u8bef\u6216\u8005\u8f6c\u6362\u6570\u636e\u4e4b\u7c7b\u7684\u4e8b\u513f&#xff0c;\u8fd8\u80fd\u53d6\u6d88\u8bf7\u6c42&#xff0c;\u81ea\u52a8\u628a\u6570\u636e\u8f6c\u6210 JSON \u683c\u5f0f\u5462&#xff0c;\u5982\u679c\u662fhttp\u7684\u8bdd&#xff0c;\u8fd9\u4e9b\u529f\u80fd\u5c31\u5f97\u81ea\u5df1\u624b\u5199\u4e86\u3002\u8fd8\u6709axios \u90a3\u4e2a\u63a5\u53e3\u8bbe\u8ba1\u5f97\u6bd4\u8f83\u7b80\u6d01\u660e\u4e86&#xff0c;http\u7528\u8d77\u6765\u5c31\u76f8\u5bf9\u9ebb\u70e6\u4e9b\u3002axios \u662f\u57fa\u4e8e JavaScript \u7684\u5f00\u6e90\u5e93&#xff0c;\u6d4f\u89c8\u5668\u91cc\u80fd\u7528&#xff0c;Node.js \u73af\u5883\u91cc\u4e5f\u80fd\u7528&#xff0c;\u8de8\u5e73\u53f0\u6027\u6bd4\u8f83\u597d&#xff0c;http\u5c31\u53ea\u80fd\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d\u4f7f\u7528\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">37\u3001\u84dd\u7259\u5f00\u53d1<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u95ee\u9898 \u2014\u2014\u2014\u2014\u4f60\u4eec\u9879\u76ee\u4e2d\u662f\u5982\u4f55\u57fa\u4e8e\u9e3f\u8499\u7cfb\u7edf\u8ddf\u7a7f\u6234\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u7684\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">1.\u624b\u73af\u548c\u624b\u8868\u90fd\u662f\u4f4e\u529f\u8017\u84dd\u7259\u6a21\u5757\u3002\u90fd\u662f\u91c7\u7528ble\u6765\u8fdb\u884c\u901a\u4fe1\u3002\u6240\u4ee5\u9879\u76ee\u5728\u6280\u672f\u9009\u578b\u7684\u6570\u636e\u624d\u7528\u9e3f\u8499next&#039;\u4e2d\u6700\u65b0\u7248\u672c\u7684ble\u6a21\u5757\u6765\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u9e3f\u8499next\u9488\u5bf9\u84dd\u7259\u901a\u4fe1\u4e5f\u63d0\u4f9b\u5f88\u591a\u6a21\u5757\u3002\u6bd4\u5982:\u4eba\u673a\u63a5\u53e3\u6a21\u5757\u3001\u97f3\u4e50\u6a21\u5757<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">2.\u62ff\u5230\u84dd\u7259\u8bbe\u5907\u540e&#xff0c;\u4f1a\u5148\u5bf9\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u6d4b\u8bd5\u3002\u5728\u624b\u673a\u6216\u8005pad\u4e2d\u4e0b\u8f7dlightblue\u8fd9\u4e2a\u5de5\u5177\u8fde\u63a5\u8bbe\u5907\u8fdb\u884c\u6570\u636e\u7684\u4f20\u8f93\u548c\u83b7\u53d6\u3002\u67e5\u770b\u8bbe\u5907\u7684uuid\u7b49\u7b49\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5f53\u8bbe\u5907\u6d4b\u8bd5\u901a\u4fe1\u6ca1\u6709\u95ee\u9898&#xff0c;\u624d\u5f00\u59cbapp\u4e2d\u53bb\u6570\u636e\u4ea4\u4e92<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">3.\u5728\u9879\u76ee\u4e2d\u6253\u5f00\u84dd\u7259(\u5173\u95ed\u84dd\u7259)<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">4.\u84dd\u7259\u901a\u4fe1\u4f1a\u6d89\u53ca\u6743\u9650&#xff0c;\u6743\u9650\u6709\u4e24\u79cd\u7c7b\u578b\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7cfb\u7edf\u84dd\u7259\u6743\u9650:\u00a0\u00a0\u4f7f\u7528\u84dd\u7259\u3001\u53d1\u73b0\u84dd\u7259&#xff0c;\u65e0\u9700\u5411\u7528\u6237\u7533\u8bf7\u6743\u9650\u3002\u76f4\u63a5\u5728\u9879\u76eemodule.ison5\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6e<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7528\u6237\u6388\u6743:\u00a0\u00a0ACCESS BLUETOOTH&#xff0c;\u8fd9\u4e2a\u6743\u9650\u7528\u6237\u7ea7\u522b&#xff0c;\u5fc5\u987b\u5728\u4ee3\u7801\u4e2d\u5148\u68c0\u6d4b\u7528\u6237\u662f\u5426\u6388\u6743\u3002\u6ca1\u6709\u6388\u6743\u5f39\u6846\u51fa\u6765\u8ba9\u7528\u6237\u70b9\u51fb\u6388\u6743\u786e\u8ba4\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8bf7\u6c42\u7528\u6237\u6388\u6743API&#xff1a;atManager.requestPermissionfromuser<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">5.\u5f00\u542f\u626b\u63cf\u548c\u5173\u95ed\u626b\u63cf<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u56e0\u4e3a\u6211\u4eec\u7528\u6237ble\u6a21\u5757&#xff0c;\u626b\u63cf10\u7c73\u4ee5\u5185\u4f4e\u529f\u84dd\u7259\u8bbe\u5907\u3002\u5982\u679c\u786c\u4ef6\u8bbe\u5907\u6ca1\u6709\u95ee\u9898\u3002\u626b\u63cf\u5230\u4e86\u3002\u5224\u65adrssi(\u65e0\u7ebf\u4fe1\u53f7\u5f3a\u5ea6\u6307\u6807)\u5f3a\u5ea6&#xff0c;\u89c4\u5b9a-100\u4ee5\u5185\u90fd\u5c5e\u4e8e\u53ef\u8fde\u63a5\u3002-50\u5c5e\u4e8e\u6bd4\u8f83\u5f3a\u4fe1\u53f7<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5224\u65ad\u8bbe\u5907\u662f\u5426\u6709\u540d\u5b57\u3002\u5f53\u6ee1\u8db3\u8fd9\u4e2a\u6761\u4ef6\u540e&#xff0c;\u5c06\u626b\u63cf\u5230\u84dd\u7259\u8bbe\u5907\u4fdd\u5b58\u8d77\u6765\u3002\u6e32\u67d3\u7ed9\u7528\u6237&#xff0c;\u7528\u6237\u70b9\u51fb\u94fe\u63a5<\/p>\n<li style=\"text-align:justify\">\u8fde\u63a5\u8bbe\u5907:\u7528\u6237\u70b9\u51fb\u94fe\u63a5\u8bbe\u5907&#xff0c;\u5c31\u9700\u8981\u7528\u5230\u84dd\u7259\u7684mac\u5730\u5740\u3002\u901a\u8fc7\u8fd9\u4e2amac\u5730\u5740\u7ed3\u5408GattClientDevice\u5bf9\u8c61\u6765\u94fe\u63a5\u8bbe\u5907\u3002\u4e00\u65e6\u94fe\u63a5\u4e0a\u9700\u8981\u8f93\u5165\u9a8c\u8bc1\u7801\u3002<\/li>\n<li style=\"text-align:justify\">\u83b7\u53d6\u670d\u52a1:\u8fde\u63a5\u4e0a\u84dd\u7259\u8fc7\u540e&#xff0c;\u901a\u8fc7getService\u63a5\u53e3\u83b7\u53d6\u84dd\u7259\u63d0\u4f9b\u670d\u52a1\u3002\u8fd4\u56deseviceuuid&#xff0c;\u8fd9\u4e2a\u670d\u52a1\u552f\u4e00\u503c&#xff0c;\u83b7\u53d6\u5230\u8fd9\u4e2a\u670d\u52a1&#xff0c;\u624d\u80fd\u540e\u7eed\u53d1\u9001\u6570\u636e\u548c\u63a5\u53d7\u6570\u636e&#xff0c;\u4f20\u9012\u90a3\u4e2auuid\u7ed9\u8bbe\u5907\u30028. \u63a5\u53d7\u84dd\u7259\u6570\u636e&#xff1a;<\/li>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u84dd\u7259\u8bbe\u5907\u4f1a\u6301\u7eed\u4f20\u9012\u6570\u636e\u7ed9app&#xff0c;\u6240\u4ee5\u6211\u4eec\u91c7\u7528\u76d1\u542c\u9700\u8981\u6211\u4eec\u4f20\u9012\u670d\u52a1\u5bf9\u8c61\u63d0\u4f9b\u53c2\u6570\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">9\u7ed9\u8bbe\u5907\u53d1\u9001\u6570\u636e&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5148\u83b7\u53d6service\u670d\u52a1\u5bf9\u8c61&#xff0c;\u5f97\u5230uuid\u503c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8c03\u7528writeCharacteristicValue&#xff0c;\u5fc5\u987b\u4f20\u9012\u4e8c\u8fdb\u5236\u6570\u636e\u3002\u4e00\u822c\u90fd\u662f\u521b\u5efaArrayBuffer\u5bf9\u8c61&#xff0c;\u5c06\u6570\u636e\u5b58\u653e\u4e8c\u8fdb\u5236\u7f13\u51b2\u533a\u3002\u53d1\u9001\u7ed9\u84dd\u7259\u8bbe\u5907\u3002<\/p>\n<h4 style=\"text-align:justify\"><\/h4>\n<h4 style=\"text-align:justify\">38\u3001camera\u76f8\u673a\u670d\u52a1<\/h4>\n<p style=\"text-align:justify\"><span style=\"color:#1a1a1a\"><span style=\"color:#1a1a1a\">\u62cd\u7167<\/span><\/span><\/p>\n<li style=\"text-align:justify\">\u5bfc\u5165image\u63a5\u53e3\u3002\u521b\u5efa\u62cd\u7167\u8f93\u51fa\u6d41\u7684SurfaceId\u4ee5\u53ca\u62cd\u7167\u8f93\u51fa\u7684\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u521b\u5efa\u62cd\u7167\u8f93\u51fa\u6d41\u3002<\/li>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u901a\u8fc7CameraOutputCapability\u7c7b\u4e2d\u7684photoProfiles\u5c5e\u6027&#xff0c;\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u8bbe\u5907\u652f\u6301\u7684\u62cd\u7167\u8f93\u51fa\u6d41&#xff0c;\u901a\u8fc7createPhotoOutput\u65b9\u6cd5\u4f20\u5165\u652f\u6301\u7684\u67d0\u4e00\u4e2a\u8f93\u51fa\u6d41\u53ca\u6b65\u9aa4\u4e00\u83b7\u53d6\u7684SurfaceId\u521b\u5efa\u62cd\u7167\u8f93\u51fa\u6d41\u3002<\/p>\n<li style=\"text-align:justify\">\u8bbe\u7f6e\u62cd\u7167photoAvailable\u7684\u56de\u8c03&#xff0c;\u5e76\u5c06\u62cd\u7167\u7684buffer\u4fdd\u5b58\u4e3a\u56fe\u7247\u3002<\/li>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#xff08;\u4f7f\u7528\u5b89\u5168\u63a7\u4ef6\u521b\u5efa\u4e00\u5f20\u56fe\u7247\u8d44\u6e90\u4e3a\u4f8b<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8bbe\u7f6e\u5b89\u5168\u63a7\u4ef6\u6309\u94ae\u5c5e\u6027\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u521b\u5efa\u5b89\u5168\u63a7\u4ef6\u6309\u94ae\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8c03\u7528MediaAssetChangeRequest.createImageAssetRequest\u548cPhotoAccessHelper.applyChanges\u63a5\u53e3\u521b\u5efa\u56fe\u7247\u8d44\u6e90\u3002&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">4.\u914d\u7f6e\u76f8\u673a\u7684\u53c2\u6570\u53ef\u4ee5\u8c03\u6574\u62cd\u7167\u7684\u4e00\u4e9b\u529f\u80fd&#xff0c;\u5305\u62ec\u95ea\u5149\u706f\u3001\u53d8\u7126\u3001\u7126\u8ddd\u7b49\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">5.\u89e6\u53d1\u62cd\u7167\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u901a\u8fc7photoOutput\u7c7b\u7684capture\u65b9\u6cd5&#xff0c;\u6267\u884c\u62cd\u7167\u4efb\u52a1\u3002\u8be5\u65b9\u6cd5\u6709\u4e24\u4e2a\u53c2\u6570&#xff0c;\u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a\u62cd\u7167\u8bbe\u7f6e\u53c2\u6570\u7684setting&#xff0c;setting\u4e2d\u53ef\u4ee5\u8bbe\u7f6e\u7167\u7247\u7684\u8d28\u91cf\u548c\u65cb\u8f6c\u89d2\u5ea6&#xff0c;\u7b2c\u4e8c\u53c2\u6570\u4e3a\u56de\u8c03\u51fd\u6570\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u83b7\u53d6\u62cd\u7167\u65cb\u8f6c\u89d2\u5ea6\u7684\u65b9\u6cd5\u4e3a&#xff0c;\u901a\u8fc7PhotoOutput\u7c7b\u4e2d\u7684getPhotoRotation\u65b9\u6cd5\u83b7\u53d6rotation\u5b9e\u9645\u7684\u503c<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">39\u3001\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d&#xff0c;OCR&#xff08;Optical Character Recognition&#xff0c;\u5149\u5b66\u5b57\u7b26\u8bc6\u522b&#xff09;\u7684\u4f7f\u7528\u6b65\u9aa4\u548c\u4f5c\u7528\u5982\u4e0b&#xff1a;<\/h4>\n<p style=\"margin-left:.0001pt;text-align:justify\"> \u4f7f\u7528\u6b65\u9aa4 1. \u9879\u76ee\u521d\u59cb\u5316\u4e0e\u6743\u9650\u914d\u7f6e&#xff1a;\u5728config.json\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5fc5\u8981\u7684\u6743\u9650&#xff0c;\u5982ohos.permission.INTERNET&#xff0c;\u786e\u4fdd\u5e94\u7528\u62e5\u6709\u7f51\u7edc\u8bbf\u95ee\u6743\u9650\u7b49\u3002 2. \u5f15\u5165\u76f8\u5173\u6a21\u5757&#xff1a;\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165CoreVisionKit\u4e2d\u7684textRecognition\u6a21\u5757\u7b49\u76f8\u5173\u6a21\u5757\u3002\u4f8b\u5982&#xff1a;import { textRecognition } from &#039;&#064;kit.CoreVisionKit&#039;;\u3002 \u521d\u59cb\u5316 Text Recognition \u670d\u52a1&#xff1a;\u5728\u5e94\u7528\u76f8\u5173\u751f\u547d\u5468\u671f\u65b9\u6cd5\u4e2d&#xff0c;\u5982aboutToAppear\u51fd\u6570\u4e2d\u521d\u59cb\u5316<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">3. \u6587\u5b57\u8bc6\u522b\u670d\u52a1\u3002\u83b7\u53d6\u5f85\u8bc6\u522b\u7684\u56fe\u50cf&#xff1a;\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u83b7\u53d6\u56fe\u50cf&#xff0c;\u5982\u4ece\u76f8\u518c\u9009\u53d6\u6216\u4f7f\u7528\u76f8\u673a\u62cd\u6444\u3002 4. \u4ece\u76f8\u518c\u83b7\u53d6&#xff1a;\u501f\u52a9CoreFileKit\u4e2d\u7684picker\u6765\u6253\u5f00\u76f8\u518c\u9009\u62e9\u56fe\u7247&#xff0c;\u5e76\u83b7\u53d6\u56fe\u7247\u7684 URI\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">5. \u76f8\u673a\u62cd\u6444&#xff1a;\u5229\u7528Camera Kit\u6765\u5b9e\u73b0\u76f8\u673a\u62cd\u7167\u529f\u80fd&#xff0c;\u83b7\u53d6\u62cd\u6444\u7684\u56fe\u7247\u3002 6. \u5c06\u56fe\u50cf\u8f6c\u6362\u4e3a PixelMap&#xff1a;\u901a\u8fc7ImageKit\u7b49\u76f8\u5173\u5de5\u5177\u5c06\u83b7\u53d6\u5230\u7684\u56fe\u7247\u8d44\u6e90\u8f6c\u6362\u4e3aPixelMap\u683c\u5f0f&#xff0c;\u56e0\u4e3aVisionInfo\u76ee\u524d\u4ec5\u652f\u6301PixelMap\u7c7b\u578b\u7684\u89c6\u89c9\u4fe1\u606f\u3002 7. \u5b9e\u4f8b\u5316 VisionInfo \u5bf9\u8c61&#xff1a;\u5c06\u5f85\u68c0\u6d4b\u56fe\u7247\u7684PixelMap\u4f20\u5165VisionInfo\u3002 8. \u914d\u7f6e\u901a\u7528\u6587\u672c\u8bc6\u522b\u7684\u914d\u7f6e\u9879&#xff1a;TextRecognitionConfiguration\u7528\u4e8e\u914d\u7f6e\u662f\u5426\u652f\u6301\u671d\u5411\u68c0\u6d4b\u7b49\u53c2\u6570\u3002 9. \u8c03\u7528\u8bc6\u522b\u63a5\u53e3&#xff1a;\u8c03\u7528textRecognition\u7684recognizeText\u63a5\u53e3\u8fdb\u884c\u6587\u5b57\u8bc6\u522b&#xff0c;\u5e76\u5904\u7406\u8bc6\u522b\u7ed3\u679c\u3002 10. \u91ca\u653e OCR \u670d\u52a1\u8d44\u6e90&#xff1a;\u5728\u5e94\u7528\u4e0d\u518d\u9700\u8981\u4f7f\u7528 OCR \u670d\u52a1\u65f6&#xff0c;\u5982aboutToDisappear\u51fd\u6570\u4e2d&#xff0c;\u91ca\u653e OCR \u670d\u52a1\u8d44\u6e90&#xff0c;\u4ee5\u907f\u514d\u8d44\u6e90\u5360\u7528\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">40\u3001\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528\u53ccToken?\u53ccToken\u5982\u4f55\u5b9e\u73b0?<\/h4>\n<li style=\"text-align:justify\"><span style=\"color:#00b0f0\">\u4ea7\u54c1\u9700\u6c42<\/span><span style=\"color:#00b0f0\">:\u65e2\u8981\u4fdd\u62a4\u540e\u53f0\u6570\u636e\u548c\u7528\u6237\u4fe1\u606f\u7684\u5b89\u5168&#xff0c;\u4e5f\u8981\u63d0\u9ad8\u7528\u6237\u4e0e\u4ea7\u54c1\u7684\u8026\u5408\u5ea6\u3002<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#00b0f0\">\u89e3\u51b3\u65b9\u6848:\u4f7f\u7528\u53ccToken\u7b56\u7565<\/span><\/li>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u2460 \u8ddf\u540e\u7aef\u534f\u5b9a\u597d&#xff0c;\u7528\u6237\u6210\u529f\u767b\u5f55\u540e\u540e\u53f0\u7ed9\u6211\u4eec\u8fd4\u56de Token&#xff0c;refreshToken \u4e24\u4e2aToken&#xff0c;\u5176\u4e2d Token \u662f\u7528\u6765\u771f\u6b63\u83b7\u53d6\u6570\u636e\u7684&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u77ed\u5468\u671f&#xff0c;\u6bd4\u59828\u4e2a\u5c0f\u65f6(\u8ddf\u540e\u7aef\u534f\u5546)\u3002\u800c refreshToken \u662f\u7528\u6765\u66f4\u65b0 Token \u7684&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u957f\u5468\u671f&#xff0c;\u6bd4\u59821~3\u5929(\u8ddf\u540e\u7aef\u534f\u5546)\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u2461 \u666e\u901a\u8bf7\u6c42\u65f6&#xff0c;\u643a\u5e26 Token \u4e14 Token \u672a\u8fc7\u671f&#xff0c;\u5219\u8bf7\u6c42\u6b63\u5e38\u8fd4\u56de\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u2462 Token \u8fc7\u671f&#xff0c;\u4f46refreshToken\u6ca1\u6709\u8fc7\u671f&#xff0c;\u6839\u636e\u8fd4\u56de\u7684\u72b6\u6001\u7801401 \u8c03\u7528\u5ef6\u957fToken \u5931\u6548\u7684\u63a5\u53e3 \u5e76\u4f20\u5165refreshToken \u91cd\u65b0\u83b7\u53d6\u65b0\u7684Token\u548crefreshToken&#xff0c;\u5e76\u66f4\u65b0\u4fdd\u5b58\u4e0b\u6765\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b0f0\">3.\u884d\u751f\u95ee\u9898<\/span>:Token\u5931\u6548\u65f6refreshToken\u672a\u5931\u6548&#xff0c;\u4f46\u662f\u7528\u6237\u662f\u4e0d\u77e5\u9053\u7684&#xff0c;\u5f53\u7528\u6237\u70b9\u51fb\u65b0\u7684\u9875\u9762\u662f\u8c03\u7528\u63a5\u53e3\u540e\u53f0\u4f1a\u53d1\u73b0token\u5931\u6548&#xff0c;\u5219\u4e0d\u4f1a\u8fd4\u56de\u6570\u636e&#xff0c;\u867d\u7136\u8c03\u7528\u4e86\u5ef6\u957f Token \u63a5\u53e3\u8fd4\u56de\u5e76\u65b0\u7684Token&#xff0c;\u4f46\u662f\u6b64\u65f6\u9875\u9762\u662f\u6ca1\u6709\u6570\u636e\u7684&#xff0c;\u7528\u6237\u7684\u4f53\u9a8c\u611f\u4f1a\u5f88\u5dee\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b0f0\">\u89e3\u51b3\u65b9\u6848:\u65e0\u611f\u8bf7\u6c42\u5904\u7406<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u6240\u4ee5\u9700\u8981\u7ee7\u7eed\u8c03\u7528\u7528\u6237\u6240\u8bbf\u95ee\u9875\u9762\u7684\u63a5\u53e3&#xff0c;\u5e76\u4f20\u5165\u66f4\u65b0\u597d\u7684 Token \u91cd\u65b0\u62ff\u5230\u6570\u636e&#xff0c;\u6e32\u67d3\u6570\u636e\u5c55\u793a\u7ed9\u7528\u6237&#xff0c;\u8fd9\u6837\u7528\u6237\u5c31\u4f1a\u89c9\u5f97\u81ea\u5df1\u4e00\u76f4\u5904\u4e8e\u767b\u5f55\u7684\u72b6\u6001<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u2463 Token \u8fc7\u671f\u8c03\u7528\u5ef6\u957fToken\u5931\u6548\u7684\u63a5\u53e3&#xff0c;\u5982\u679crefreshToken \u4e5f\u8fc7\u671f&#xff0c;\u8fd4\u56de\u7684\u72b6\u6001\u7801\u90fd\u662f401 \u5c31\u4f1a\u65e0\u9650\u8c03\u7528\u5ef6\u957fToken\u5931\u6548\u7684\u63a5\u53e3&#xff0c;\u6240\u4ee5\u9700\u8981\u505a\u5224\u65ad&#xff0c;\u53d1\u73b0\u4e24\u4e2aToken\u90fd\u5931\u6548\u65f6\u5219\u7acb\u5373\u62e6\u622a&#xff0c;\u8ba9\u7528\u6237\u8fd4\u56de\u767b\u5f55\u9875\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:justify\">41\u3001\u76d1\u542c\u6570\u636e\u53d8\u5316&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ec0\u4e48\u88c5\u9970\u5668&#xff1f;<\/h4>\n<p>\u53ef\u4ee5\u4f7f\u7528&#064;watch\u88c5\u9970\u5668\u6765\u76d1\u542c\u6570\u636e\u7684\u53d8\u5316&#xff0c;&#064;watch\u5fc5\u987b\u914d\u5408\u5176\u4ed6\u88c5\u9970\u5668&#xff08;\u6bd4\u5982&#064;State&#xff0c;&#064;Prop&#xff0c;&#064;Link\u7b49&#xff09;\u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;<\/p>\n<p>&#064;State<\/p>\n<p>&#064;Watch&#xff08;\u2018\u56de\u8c03\u51fd\u6570\u540d\u2019&#xff09;<\/p>\n<p>info&#xff1a;string&#061;\u2018\u2019<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u56de\u8c03\u51fd\u6570\u540d&#xff08;&#xff09;{<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">}<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">42\u3001\u9996\u9009\u9879\u901a\u8fc7\u4ec0\u4e48\u65b9\u5f0f\u5b58\u50a8&#xff1f;\u5b58\u5728\u4ec0\u4e48\u5730\u65b9&#xff1f;<\/h4>\n<p>\u5b58\u50a8\u5f62\u5f0f&#xff1a;\u9996\u9009\u9879&#xff08;Preferences&#xff09;\u901a\u8fc7\u952e\u503c\u5bf9&#xff08;Key-Value&#xff09;\u7684\u5f62\u5f0f\u50a8\u5b58\u6570\u636e&#xff0c;\u7528\u4e8e\u4e3a\u5e94\u7528\u63d0\u4f9b\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u5904\u7406\u80fd\u529b&#xff0c;\u5e76\u652f\u6301\u6570\u636e\u7684\u6301\u4e45\u5316\u50a8\u5b58<\/p>\n<p>\u5b58\u50a8\u4f4d\u7f6e&#xff1a;\u9ed8\u8ba4\u50a8\u5b58\u4f4d\u7f6e\u4e3a\u8be5\u5e94\u7528\u7684\u5e94\u7528\u6c99\u7bb1\u4e2d<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">43\u3001axios\u7684\u539f\u7406&#xff0c;\u4ee5\u53ca\u7528\u6cd5&#xff1f;<\/h4>\n<p>Axios\u662f\u4e00\u4e2a\u57fa\u4e8epromise\u7684http\u5ba2\u6237\u7aef&#xff0c;\u7528\u4e8e\u5728\u6d4f\u89c8\u5668\u548cNode.js\u4e2d\u53d1\u9001http\u8bf7\u6c42\u3002<\/p>\n<p>\u5176\u5de5\u4f5c\u539f\u7406\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a;\u521b\u5efa\u8bf7\u6c42\u914d\u7f6e\u5bf9\u8c61&#xff1a;\u5305\u542b\u8bf7\u6c42\u7684\u65b9\u6cd5&#xff08;\u5982GET\u3001POST\u7b49&#xff09;\u3001URL\u3001\u8bf7\u6c42\u5934\u3001\u8bf7\u6c42\u4f53\u7b49\u6d88\u606f\u3002\u5229\u7528XMLHttpRequest\u5bf9\u8c61\u6216\u6d4f\u89c8\u5668\u7684fetch\u53d1\u9001\u8bf7\u6c42\u3002\u5904\u7406\u8bf7\u6c42\u7684\u54cd\u5e94&#xff1a;\u5305\u62ec\u89e3\u6790\u54cd\u5e94\u6570\u636e\u3001\u5904\u7406\u9519\u8bef\u72b6\u6001\u7b49&#xff0c;\u8fd4\u56de\u4e00\u4e2aPrimose\u5bf9\u8c61&#xff0c;\u4ee5\u4fbf\u60ca\u9192\u5f02\u6b65\u64cd\u4f5c\u7684\u5904\u7406\u548c\u94fe\u5f0f\u8c03\u7528\u7528\u6cd5\u3002<\/p>\n<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">44\u3001router\u5982\u4f55\u8fdb\u884c\u9875\u9762\u4f20\u503c&#xff1f;<\/h4>\n<p>\u4f7f\u7528router\u4e2d\u7684params\u5c5e\u6027\u8fdb\u884c\u4f20\u503c&#xff0c;<\/p>\n<p>\u5728\u8df3\u8f6c\u9875\u9762\u662f\u4f7f\u7528<\/p>\n<p>aboutToAppear&#xff08;&#xff09;{<\/p>\n<p>const res &#061; router.getparams&#xff08;&#xff09;}\u00a0<\/p>\n<p>\u8fdb\u884c\u63a5\u6536\u5b8c\u6210\u9875\u9762\u4f20\u503c\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">45\u3001\u7ebf\u7a0b\u7684\u4e24\u79cd\u65b9\u5f0f\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;<\/h4>\n<p>\u5728\u9e3f\u8499&#xff08;HarmonyOS&#xff09;\u4e2d&#xff0c;\u5b9e\u73b0\u591a\u7ebf\u7a0b\u7684\u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f&#xff1a;\u7ebf\u7a0b\u548c\u534f\u7a0b&#xff0c;\u534f\u7a0b\u66f4\u8f7b\u91cf&#xff0c;\u9002\u5408\u9ad8\u5b9e\u65f6\u6027\u9700\u6c42&#xff1a;\u7ebf\u7a0b\u66f4\u72ec\u7acb&#xff0c;\u9002\u5408\u590d\u6742\u5e76\u53d1\u64cd\u4f5c\u3002<\/p>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\">46\u3001http\u662f\u5728\u4e3b\u7ebf\u7a0b\u5185\u8fd8\u662f\u53e6\u8d77\u4e00\u4e2a\u7ebf\u7a0b&#xff1f;<\/h4>\n<p>Http\u8bf7\u6c42\u901a\u5e38\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u53d1\u8d77&#xff0c;\u4f46\u73b0\u4ee3\u7f16\u7a0b\u73af\u5883\u591a\u91c7\u7528\u5f02\u6b65\u65b9\u5f0f\u5904\u7406&#xff0c;\u907f\u514d\u5835\u585e\u4e3b\u7ebf\u7a0b&#xff0c;\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5&#xff0c;\u901a\u5e38\u5efa\u8bae\u5728\u5b50\u7ebf\u7a0b\u6216\u901a\u8fc7\u5f02\u6b65\u4efb\u52a1&#xff08;\u5982async&#xff0c;Promise\u7b49&#xff09;\u6765\u6267\u884c\u7f51\u7edc\u8bf7\u6c42&#xff0c;\u4ee5\u786e\u4fdd\u4e3b\u7ebf\u7a0b\u7684\u6d41\u7545\u6027\u3002<\/p>\n<\/p>\n<h4 style=\"margin-left:0.0001pt;text-align:justify\">47\u3001Promise\u5f02\u6b65\u3001\u548ctasktool\u6709\u4ec0\u4e48\u533a\u522b\u5417<\/h4>\n<p>\u7b80\u8a00\u4e4b&#xff0c;promise\u9002\u5408\u5904\u7406\u5f02\u6b65\u64cd\u4f5c\u7684\u7ed3\u679c&#xff0c;\u800cTaskPool\u66f4\u9002\u5408\u7ba1\u7406\u5927\u91cf\u5e76\u53d1\u4efb\u52a1\u3002<\/p>\n<h4 style=\"margin-left:0.0001pt;text-align:justify\"><\/h4>\n<h4 style=\"margin-left:0.0001pt;text-align:justify\">48\u3001\u591a\u7ebf\u7a0b\u6539\u53d8\u4e86\u4e3b\u7ebf\u7a0b\u7684\u503c\u00a0 \u90a3\u4e48\u4e3b\u7ebf\u7a0b\u5185\u7684\u503c\u4f1a\u4e0d\u4f1a\u4e00\u8d77\u6539\u53d8&#xff1f;<\/h4>\n<p>\u5728\u591a\u7ebf\u7a0b\u73af\u5883\u4e2d&#xff0c;\u4e00\u4e2a\u7ebf\u7a0b\u5bf9\u5171\u4eab\u53d8\u91cf\u7684\u4fee\u6539\u662f\u5426\u80fd\u88ab\u5176\u4ed6\u7ebf\u7a0b&#xff08;\u5305\u62ec\u4e3b\u7ebf\u7a0b&#xff09;\u770b\u5230&#xff0c;\u53d6\u51b3\u4e8e\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a;<\/p>\n<p>1.\u5185\u5b58\u53ef\u89c1\u6027&#xff1a;\u786e\u4fdd\u7ebf\u7a0b\u4e4b\u95f4\u7684\u4fee\u6539\u80fd\u591f\u76f8\u4e92\u53ef\u89c1\u3002<\/p>\n<p>2.\u540c\u6b65\u673a\u5236&#xff1a;\u786e\u4fdd\u7ebf\u7a0b\u4e4b\u95f4\u7684\u6b63\u786e\u901a\u4fe1\u3002<\/p>\n<h4><\/h4>\n<h4>49\u3001\u4ec0\u4e48\u65f6\u5019\u8c03\u7528\u81ea\u5b9a\u4e49 Loading&#xff1f;<\/h4>\n<p> \u901a\u5e38\u5728\u4ee5\u4e0b\u60c5\u51b5\u4e0b\u8c03\u7528\u81ea\u5b9a\u4e49 Loading \u7ec4\u4ef6&#xff1a; &#8211; \u6570\u636e\u8bf7\u6c42\u65f6&#xff1a;\u5f53\u5e94\u7528\u9700\u8981\u4ece\u7f51\u7edc\u6216\u672c\u5730\u5b58\u50a8\u83b7\u53d6\u6570\u636e\u65f6&#xff0c;\u4e3a\u4e86\u7ed9\u7528\u6237\u63d0\u4f9b\u826f\u597d\u7684\u4ea4\u4e92\u4f53\u9a8c&#xff0c;\u5728\u8bf7\u6c42\u5f00\u59cb\u65f6\u663e\u793a Loading \u7ec4\u4ef6&#xff0c;\u8bf7\u6c42\u5b8c\u6210\u540e\u9690\u85cf\u3002 &#8211; \u6570\u636e\u63d0\u4ea4\u65f6&#xff1a;\u5f53\u7528\u6237\u63d0\u4ea4\u8868\u5355\u6216\u6267\u884c\u5176\u4ed6\u9700\u8981\u8f83\u957f\u65f6\u95f4\u5904\u7406\u7684\u64cd\u4f5c\u65f6&#xff0c;\u663e\u793a Loading \u7ec4\u4ef6&#xff0c;\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210\u3002 &#8211; \u9875\u9762\u52a0\u8f7d\u65f6&#xff1a;\u5728\u9875\u9762\u521d\u59cb\u5316\u9700\u8981\u8fdb\u884c\u5927\u91cf\u6570\u636e\u5904\u7406\u6216\u8d44\u6e90\u52a0\u8f7d\u65f6&#xff0c;\u663e\u793a Loading \u7ec4\u4ef6\u3002<\/p>\n<h4><\/h4>\n<h4>50\u3001\u00a0\u83b7\u53d6\u6570\u636e\u7684\u65f6\u5019\u8c03\u7528 Loading&#xff0c;\u63d0\u4ea4\u6570\u636e\u7684\u65f6\u5019\u7528 Loading&#xff0c;\u90fd\u662f\u7528 Loading \u7ec4\u4ef6\u5417&#xff1f;Loading \u7ec4\u4ef6\u653e\u5728\u54ea\u91cc&#xff1f;\u653e\u5230\u5168\u5c40\u8fd8\u662f\u653e\u5230\u54ea\u91cc&#xff1f;<\/h4>\n<p> \u83b7\u53d6\u6570\u636e\u548c\u63d0\u4ea4\u6570\u636e\u65f6\u90fd\u53ef\u4ee5\u4f7f\u7528\u540c\u4e00\u4e2a Loading \u7ec4\u4ef6\u3002Loading \u7ec4\u4ef6\u7684\u653e\u7f6e\u4f4d\u7f6e\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u4e1a\u52a1\u9700\u6c42&#xff1a; &#8211; **\u5168\u5c40 Loading**&#xff1a;\u5982\u679c\u591a\u4e2a\u9875\u9762\u6216\u7ec4\u4ef6\u90fd\u9700\u8981\u4f7f\u7528 Loading \u7ec4\u4ef6&#xff0c;\u53ef\u4ee5\u5c06\u5176\u5c01\u88c5\u4e3a\u5168\u5c40\u7ec4\u4ef6\u3002\u53ef\u4ee5\u5728\u5e94\u7528\u7684\u6839\u7ec4\u4ef6\u4e2d\u6dfb\u52a0 Loading \u7ec4\u4ef6&#xff0c;\u5e76\u901a\u8fc7\u72b6\u6001\u7ba1\u7406\u6765\u63a7\u5236\u5176\u663e\u793a\u548c\u9690\u85cf\u3002 &#8211; **\u5c40\u90e8 Loading**&#xff1a;\u5982\u679c\u67d0\u4e2a\u9875\u9762\u6216\u7ec4\u4ef6\u53ea\u5728\u7279\u5b9a\u7684\u64cd\u4f5c\u4e2d\u9700\u8981\u663e\u793a Loading&#xff0c;\u53ef\u4ee5\u5c06 Loading \u7ec4\u4ef6\u6dfb\u52a0\u5230\u8be5\u9875\u9762\u6216\u7ec4\u4ef6\u4e2d\u3002<\/p>\n<h4><\/h4>\n<h4>51\u3001stage \u6a21\u578b\u548c FA \u6a21\u578b\u7684\u533a\u522b&#xff1f;<\/h4>\n<p>&#8211; **FA&#xff08;Feature Ability&#xff09;\u6a21\u578b**&#xff1a; \u00a0 &#8211; \u662f\u9e3f\u8499\u65e9\u671f\u7684\u5e94\u7528\u5f00\u53d1\u6a21\u578b&#xff0c;\u57fa\u4e8e Ability \u548c AbilitySlice \u6784\u5efa\u3002 \u00a0 &#8211; \u4e3b\u8981\u4f7f\u7528 Java \u6216 JavaScript \u8fdb\u884c\u5f00\u53d1\u3002 \u00a0 &#8211; \u5e94\u7528\u7684\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5728 &#096;config.json&#096; \u6587\u4ef6\u4e2d\u3002<\/p>\n<p>&#8211; **Stage \u6a21\u578b**&#xff1a; \u00a0 &#8211; \u662f\u9e3f\u8499 3.1 \u53ca\u4ee5\u4e0a\u7248\u672c\u63a8\u8350\u7684\u5e94\u7528\u5f00\u53d1\u6a21\u578b&#xff0c;\u66f4\u52a0\u7b80\u6d01\u548c\u7075\u6d3b\u3002 \u00a0 &#8211; \u652f\u6301\u4f7f\u7528 Java\u3001Kotlin \u548c JavaScript \u8fdb\u884c\u5f00\u53d1\u3002 \u00a0 &#8211; \u5e94\u7528\u7684\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5728 &#096;module.json5&#096; \u6587\u4ef6\u4e2d&#xff0c;\u91c7\u7528\u6a21\u5757\u5316\u7684\u914d\u7f6e\u65b9\u5f0f\u3002 \u00a0 &#8211; \u5f15\u5165\u4e86 Page Ability \u548c Service Ability \u7684\u6982\u5ff5&#xff0c;\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n<h4><\/h4>\n<h4>52\u3001\u5e73\u65f6\u600e\u4e48\u627e\u5230\u81ea\u5df1\u6253\u5370\u7684 log&#xff1f;<\/h4>\n<p>\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u627e\u5230\u81ea\u5df1\u6253\u5370\u7684 log&#xff1a; &#8211; **DevEco Studio \u65e5\u5fd7\u7a97\u53e3**&#xff1a;\u5728 DevEco Studio \u4e2d&#xff0c;\u6253\u5f00 &#096;Logcat&#096; \u7a97\u53e3&#xff0c;\u901a\u8fc7\u8bbe\u7f6e\u8fc7\u6ee4\u6761\u4ef6&#xff0c;\u5982\u5305\u540d\u3001\u65e5\u5fd7\u7ea7\u522b\u7b49&#xff0c;\u6765\u7b5b\u9009\u51fa\u81ea\u5df1\u6253\u5370\u7684 log\u3002 &#8211; **\u65e5\u5fd7\u6807\u7b7e**&#xff1a;\u5728\u6253\u5370 log \u65f6&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u6807\u7b7e&#xff0c;\u5728 &#096;Logcat&#096; \u7a97\u53e3\u4e2d\u901a\u8fc7\u6807\u7b7e\u8fdb\u884c\u8fc7\u6ee4&#xff0c;\u5feb\u901f\u5b9a\u4f4d\u81ea\u5df1\u7684 log\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p>&#096;&#096;&#096;typescript import logger from &#039;&#064;system.logger&#039;;<\/p>\n<p>const TAG &#061; &#039;MyAppLog&#039;;<\/p>\n<p>logger.info(TAG, &#039;This is a custom log message.&#039;); &#096;&#096;&#096;<\/p>\n<p>\u5728 &#096;Logcat&#096; \u7a97\u53e3\u4e2d\u8bbe\u7f6e\u8fc7\u6ee4\u6761\u4ef6\u4e3a &#096;MyAppLog&#096;&#xff0c;\u5373\u53ef\u5feb\u901f\u627e\u5230\u8be5\u65e5\u5fd7\u4fe1\u606f\u3002<\/p>\n<h4><\/h4>\n<h4>53\u3001\u4e86\u89e3\u8fc7V2\u5417&#xff1f;v1\u4e0ev2\u533a\u522b&#xff1f;<\/h4>\n<ul>\n<li>\u6570\u636e\u89c2\u5bdf\u80fd\u529b\n<ul>\n<li>V1&#xff1a;&#064;Observed \u53ef\u89c2\u5bdf\u7b2c\u4e00\u5c42\u7684\u5c5e\u6027&#xff0c;\u9700\u8981\u642d\u914d &#064;ObjectLink \u4f7f\u7528\u624d\u80fd\u751f\u6548\u3002<\/li>\n<li>V2&#xff1a;&#064;ObservedV2 \u672c\u8eab\u65e0\u89c2\u5bdf\u80fd\u529b&#xff0c;\u4ec5\u4ee3\u8868\u5f53\u524d class \u53ef\u88ab\u89c2\u5bdf&#xff0c;\u5982\u679c\u8981\u89c2\u5bdf\u5176\u5c5e\u6027&#xff0c;\u9700\u8981\u642d\u914d &#064;Trace \u4f7f\u7528&#xff0c;&#064;Trace \u88c5\u9970\u7684\u5c5e\u6027\u53ef\u4ee5\u88ab\u7cbe\u786e\u8ddf\u8e2a\u89c2\u5bdf\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7ec4\u4ef6\u88c5\u9970\u5668\n<ul>\n<li>V1&#xff1a;\u4f7f\u7528 &#064;Component \u4f5c\u4e3a\u642d\u914d\u72b6\u6001\u53d8\u91cf\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u88c5\u9970\u5668\u3002<\/li>\n<li>V2&#xff1a;\u4f7f\u7528 &#064;ComponentV2 \u4f5c\u4e3a\u642d\u914d\u72b6\u6001\u53d8\u91cf\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u88c5\u9970\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u72b6\u6001\u53d8\u91cf\u521d\u59cb\u5316\n<ul>\n<li>V1&#xff1a;&#064;State \u548c &#064;Local \u7c7b\u4f3c\u90fd\u662f\u6570\u636e\u6e90\u7684\u6982\u5ff5&#xff0c;\u5728\u4e0d\u9700\u8981\u5916\u90e8\u4f20\u5165\u521d\u59cb\u5316\u65f6&#xff0c;\u53ef\u76f4\u63a5\u8fc1\u79fb\u3002\u5982\u679c\u9700\u8981\u5916\u90e8\u4f20\u5165\u521d\u59cb\u5316&#xff0c;\u5219\u53ef\u4ee5\u8fc1\u79fb\u4e3a &#064;Param&#064;Once\u3002<\/li>\n<li>V2&#xff1a;&#064;Local \u5fc5\u987b\u5728\u7ec4\u4ef6\u5185\u90e8\u521d\u59cb\u5316&#xff0c;\u53ef\u521d\u59cb\u5316\u5b50\u7ec4\u4ef6\u4e2d &#064;Param \u88c5\u9970\u7684\u53d8\u91cf&#xff1b;&#064;Param \u53ef\u672c\u5730\u521d\u59cb\u5316&#xff0c;\u4f46\u4e0d\u5141\u8bb8\u518d\u6b21\u6539\u52a8&#xff0c;\u82e5\u672c\u5730\u4e0d\u521d\u59cb\u5316&#xff0c;\u5219\u4e0e &#064;Require \u88c5\u9970\u5668\u4e00\u8d77\u7528&#xff0c;\u5fc5\u987b\u7236\u7ec4\u4ef6\u521d\u59cb\u5316&#xff0c;\u53ef\u4ee5\u63a5\u53d7\u4efb\u610f\u7c7b\u578b\u7684\u6570\u636e\u6e90&#xff0c;\u5305\u62ec\u666e\u901a\u53d8\u91cf\u3001\u72b6\u6001\u53d8\u91cf\u3001\u5e38\u91cf\u3001\u51fd\u6570\u8fd4\u56de\u503c\u7b49&#xff0c;\u8fd8\u53ef\u521d\u59cb\u5316\u5b50\u7ec4\u4ef6\u4e2d &#064;Param \u88c5\u9970\u7684\u53d8\u91cf\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6570\u636e\u540c\u6b65\u4e0e\u66f4\u65b0\n<ul>\n<li>V1&#xff1a;&#064;Link \u662f\u6846\u67b6\u81ea\u5df1\u5c01\u88c5\u5b9e\u73b0\u7684\u53cc\u5411\u540c\u6b651\u3002&#064;Prop \u548c &#064;Param \u7c7b\u4f3c\u90fd\u662f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u53c2\u6570\u7684\u6982\u5ff5&#xff0c;\u5f53\u8f93\u5165\u53c2\u6570\u4e3a\u590d\u6742\u7c7b\u578b\u65f6&#xff0c;&#064;Prop \u4e3a\u6df1\u62f7\u8d1d&#xff0c;&#064;Param \u4e3a\u5f15\u75281\u3002<\/li>\n<li>V2&#xff1a;\u5bf9\u4e8e V2 \u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7 &#064;Param&#064;Event \u81ea\u5df1\u5b9e\u73b0\u53cc\u5411\u540c\u6b651\u3002&#064;Param \u652f\u6301\u7236\u5b50\u5355\u5411\u540c\u6b65&#xff08;\u4f46\u66f4\u6539\u5bf9\u8c61\u5c5e\u6027\u4f1a\u540c\u6b65&#xff09;5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u72b6\u6001\u76d1\u542c\n<ul>\n<li>V1&#xff1a;&#064;Watch \u7528\u4e8e\u76d1\u542c\u72b6\u6001\u53d8\u91cf\u7684\u53d8\u5316&#xff0c;\u5177\u6709\u76d1\u542c\u72b6\u6001\u53d8\u91cf\u672c\u8eab\u548c\u5176\u7b2c\u4e00\u5c42\u5c5e\u6027\u53d8\u5316\u7684\u80fd\u529b\u3002<\/li>\n<li>V2&#xff1a;&#064;Monitor \u7528\u4e8e\u76d1\u542c V2 \u72b6\u6001\u53d8\u91cf\u7684\u53d8\u5316&#xff0c;\u642d\u914d &#064;Trace \u4f7f\u7528&#xff0c;\u53ef\u6709\u6df1\u5c42\u76d1\u542c\u7684\u80fd\u529b\u3002\u72b6\u6001\u53d8\u91cf\u5728\u4e00\u6b21\u4e8b\u4ef6\u4e2d\u591a\u6b21\u53d8\u5316\u65f6&#xff0c;\u4ec5\u4f1a\u4ee5\u6700\u7ec8\u7684\u7ed3\u679c\u5224\u65ad\u662f\u5426\u89e6\u53d1 &#064;Monitor \u76d1\u542c\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u6027\u80fd\u4f18\u53164<\/p>\n<ul>\n<li>V1&#xff1a;\u72b6\u6001\u7ba1\u7406\u5728\u9891\u7e41\u7684\u72b6\u6001\u53d8\u66f4\u65f6&#xff0c;\u53ef\u80fd\u4f1a\u89e6\u53d1\u8fc7\u591a\u7684 UI \u6e32\u67d3&#xff0c;\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u3002<\/li>\n<li>V2&#xff1a;\u5f15\u5165\u4e86\u66f4\u667a\u80fd\u7684\u72b6\u6001\u66f4\u65b0\u673a\u5236&#xff0c;\u51cf\u5c11\u4e86\u4e0d\u5fc5\u8981\u7684 UI \u6e32\u67d3&#xff0c;\u53ea\u6709\u5b9e\u9645\u4f9d\u8d56\u8be5\u72b6\u6001\u7684\u7ec4\u4ef6\u624d\u4f1a\u66f4\u65b0&#xff0c;\u4f18\u5316\u4e86\u6027\u80fd&#xff1b;\u63d0\u4f9b\u4e86\u6279\u91cf\u66f4\u65b0\u7684\u673a\u5236&#xff0c;\u51cf\u5c11\u4e86\u5355\u4e2a\u72b6\u6001\u66f4\u65b0\u9020\u6210\u7684\u591a\u6b21\u6e32\u67d3\u3002<\/li>\n<\/ul>\n<p>\u5f00\u53d1\u4f53\u9a8c4<\/p>\n<ul>\n<li>V1&#xff1a;\u72b6\u6001\u7ba1\u7406\u7684\u64cd\u4f5c\u8f83\u4e3a\u57fa\u7840&#xff0c;\u5c24\u5176\u662f\u5728\u8de8\u7ec4\u4ef6\u5171\u4eab\u72b6\u6001\u65f6&#xff0c;\u9700\u8981\u8f83\u591a\u7684\u624b\u52a8\u7ba1\u7406\u3002<\/li>\n<li>V2&#xff1a;\u63d0\u4f9b\u4e86\u66f4\u52a0\u4e30\u5bcc\u7684\u72b6\u6001\u88c5\u9970\u5668&#xff08;\u5982 &#064;ProvideGlobal\u3001&#064;ConsumeGlobal&#xff09;&#xff0c;\u8ba9\u5f00\u53d1\u8005\u80fd\u66f4\u7075\u6d3b\u5730\u7ba1\u7406\u5168\u5c40\u72b6\u6001&#xff0c;\u51cf\u5c11\u624b\u52a8\u4ee3\u7801\u7f16\u5199&#xff1b;\u6539\u8fdb\u4e86\u53cc\u5411\u6570\u636e\u7ed1\u5b9a\u673a\u5236&#xff0c;\u51cf\u5c11\u4e86\u72b6\u6001\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p>\u66f4\u8be6\u7ec6\u770b\u5b98\u7f51<\/p>\n<p>https:\/\/developer.huawei.com\/consumer\/cn\/doc\/harmonyos-guides-V5\/arkts-v1-v2-migration-V5<\/p>\n<\/p>\n<h4>54\u3001\u600e\u4e48\u5b9e\u73b0\u534e\u4e3a\u767b\u5f55&#xff1f;<\/h4>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\u524d\u671f\u51c6\u5907<span style=\"background-color:#ffff00\">&#xff1a;&#xff08; cer\u3001\u00a0 csr\u3001\u00a0 p12\u3001\u00a0 p7b &#xff09;<\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">1.\u83b7\u53d6\u8bc1\u4e66\u548c\u7b7e\u540d&#xff0c;DevEco Studio \u5de5\u5177\u4fa7\u751f\u6210\u5bc6\u94a5&#xff08;.p12&#xff09;<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\u548c\u8bc1\u4e66\u8bf7\u6c42\u6587\u4ef6&#xff08;.csr&#xff09;&#8211;\u6784\u5efa\u4e2d\u751f\u6210\u79c1\u94a5\u548c\u8bc1\u4e66\u6587\u4ef6&#xff1b;<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\u5728AGC\u5e73\u53f0\u4e2d\u751f\u6210p7b\u548ccer\u6587\u4ef6&#xff1b;<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"><span style=\"background-color:#ffff00\">(\u7533\u8bf7\u534e\u4e3a\u767b\u5f55\u5f97\u670d\u52a1-\u7ba1\u7406\u4e2d\u5fc3-\u6743\u9650\u7ba1\u7406)<\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">2.DevEco\u914d\u7f6e\u6743\u9650&#xff0c;<span style=\"background-color:#ffff00\">module.json5\u4e2d\u914d\u7f6eclient_id<\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"><span style=\"background-color:#ffff00\">\u00a0AppScope\/app.json5 -&gt; \u68c0\u67e5 bundleName<\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"><span style=\"background-color:#ffff00\">\u00a0\u8ba9\u540e\u7aef\u51c6\u5907\u7684\u534e\u4e3a\u6388\u6743\u63a5\u53e3<\/span><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">3.\u8fdb\u884cscope\u6743\u9650\u7533\u8bf7\u5b9e\u73b0\u534e\u4e3a\u767b\u5f55\u7684\u8fc7\u7a0b\u5c31\u662f&#xff1a;\u8c03\u7528\u6388\u6743API\u5411\u534e\u4e3a\u670d\u52a1\u5668\u7533\u8bf7\u83b7\u53d6Code&#xff0c;\u8fd4\u56decode\u540e&#xff0c;\u518d\u5c06\u5176\u53d1\u9001\u5e94\u7528\u670d\u52a1\u5668\u8fdb\u884c\u89e3\u6790&#xff0c;\u89e3\u6790\u51fa\u4e00\u4e2a\u624b\u673a\u53f7\u8fd4\u56de\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\u7f16\u7801\u5b9e\u73b0&#xff1b;<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">1.\u6211\u5c01\u88c5\u4e86\u4e00\u4e2a\u534e\u4e3a\u6388\u6743\u767b\u5f55\u5f97\u5de5\u5177\u7c7b&#xff0c;\u5305\u542b\u7533\u8bf7\u6388\u6743\u767b\u5f55\u548c\u53d6\u6d88\u6388\u6743\u767b\u5f55\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">2.\u5728\u9875\u9762\u4e2d\u8c03\u7528\u7533\u8bf7\u6388\u6743\u767b\u5f55&#xff0c;\u83b7\u53d6code<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">3.\u628acode\u53d1\u9001\u7ed9\u540e\u7aef\u670d\u52a1\u5668&#xff0c;\u540e\u7aef\u670d\u52a1\u5668\u5411\u534e\u4e3a\u670d\u52a1\u5668\u83b7\u53d6\u7528\u6237\u4fe1\u606f&#xff0c;\u540e\u7aef\u5b8c\u6210\u6821\u9a8c\u540e&#xff0c;\u521b\u5efa\u8d26\u53f7\u6216\u8fd4\u56de\u8d26\u53f7\u4fe1\u606f&#xff08;\u9700\u540e\u7aef\u63d0\u4f9b\u63a5\u53e3&#xff09;<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">4\u3001\u628a\u8d26\u53f7\u4fe1\u606f\u6839token\u4fdd\u5b58\u8d77\u6765&#xff0c;\u5b8c\u6210\u767b\u5f55\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">5.\u9000\u51fa\u767b\u5f55\u65f6&#xff0c;\u6e05\u7406\u6388\u6743\u4fe1\u606f\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">55\u3001\u56fe\u6848\u5bc6\u7801\u9501\u7528\u7684\u662f\u4ec0\u4e48?<\/h4>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\"> 1.\u56fe\u6848\u5bc6\u7801\u9501\u7684\u7279\u70b9 \u8f93\u5165\u65b9\u5f0f: \u7528\u6237\u901a\u8fc7\u624b\u6307\u5728\u56fe\u6848\u5bc6\u7801\u9501\u7ec4\u4ef6\u7684\u683c\u5b50\u533a\u57df\u6ed1\u52a8&#xff0c;\u8fde\u63a5\u7279\u5b9a\u987a\u5e8f\u7684\u683c\u5b50\u6765\u521b\u5efa\u5bc6\u7801\u3002 \u9a8c\u8bc1\u673a\u5236: \u5f53\u7528\u6237\u518d\u6b21\u6309\u7167\u76f8\u540c\u7684\u987a\u5e8f\u8fde\u63a5\u683c\u5b50\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u6839\u636e\u8f93\u5165\u7684\u987a\u5e8f\u4e0e\u9884\u8bbe\u7684\u5bc6\u7801\u8fdb\u884c\u6bd4\u5bf9&#xff0c;\u4ee5\u9a8c\u8bc1\u7528\u6237\u7684\u8eab\u4efd\u3002 \u754c\u9762\u8868\u73b0: \u56fe\u6848\u5bc6\u7801\u9501\u7ec4\u4ef6\u901a\u5e38\u4f1a\u4ee5\u56fe\u5f62\u5316\u7684\u65b9\u5f0f\u5c55\u793a\u683c\u5b50&#xff0c;\u5e76\u5728\u7528\u6237\u9009\u62e9\u683c\u5b50\u65f6\u663e\u793a\u9009\u4e2d\u7684\u72b6\u6001(\u5982\u989c \u8272\u53d8\u5316) 2.\u5728DevEco\u4e2d\u7684\u5b9e\u73b0 \u7ec4\u4ef6\u652f\u6301:\u4eceHarmonyOS\u7684\u67d0\u4e2a\u7248\u672c(\u5982APIVersion 9\u5f00\u59cb)\u8d77&#xff0c;DevEco Studio\u652f\u6301\u56fe\u6848\u5bc6\u7801\u9501\u7ec4\u4ef6\u7684\u5f00\u53d1\u3002 \u5c5e\u6027\u4e0e\u4e8b\u4ef6:\u56fe\u6848\u5bc6\u7801\u9501\u7ec4\u4ef6\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u5c5e\u6027\u548c\u4e8b\u4ef6&#xff0c;\u7528\u4e8e\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002\u4f8b\u5982&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u683c\u5b50\u7684\u5927\u5c0f\u3001\u989c\u8272\u3001\u8fb9\u6846\u5bbd\u5ea6\u7b49\u5c5e\u6027&#xff0c;\u4ee5\u53ca\u76d1\u542c\u5bc6\u7801\u8f93\u5165\u5b8c\u6210\u7b49\u4e8b\u4ef6\u3002 \u5f00\u53d1\u6587\u6863\u4e0e\u793a\u4f8b:DevEco Studio\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u5f00\u53d1\u6587\u6863\u548c\u793a\u4f8b\u4ee3\u7801&#xff0c;\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u4e0a\u624b\u5e76\u5b9e\u73b0\u56fe\u6848\u5bc6\u7801\u9501\u529f\u80fd\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e9b\u8d44\u6e90\u6765\u4e86\u89e3\u7ec4\u4ef6\u7684\u8be6\u7ec6\u7528\u6cd5\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">56\u3001\u9e3f\u8499\u5f00\u53d1\u7684\u56db\u5927\u7279\u6027<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u5206\u5e03\u5f0f\u80fd\u529b<\/span>&#xff1a;\u8de8\u8bbe\u5907\u534f\u540c&#xff1a;\u9e3f\u8499\u7cfb\u7edf\u80fd\u591f\u6253\u7834\u8bbe\u5907\u4e4b\u95f4\u7684\u58c1\u5792&#xff0c;\u8ba9\u4e0d\u540c\u7684\u667a\u80fd\u8bbe\u5907\u53ef\u4ee5\u65e0\u7f1d\u5730\u534f\u540c\u5de5\u4f5c\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u5143<\/span><span style=\"background-color:#ffff00\">\u670d\u52a1<\/span>&#xff1a;\u514d\u5b89\u88c5&#xff0c;\u8f7b\u91cf\u5316&#xff0c;\u5feb\u6377\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u4e00\u6b21\u5f00\u53d1<\/span>&#xff0c;\u591a\u7aef\u90e8\u7f72&#xff1a;\u5c31\u662f\u4ee3\u7801\u590d\u7528&#xff1b;\u9e3f\u8499\u5f00\u53d1\u6846\u67b6\u652f\u6301\u4f7f\u7528\u4e00\u5957\u4ee3\u7801&#xff0c;\u9002\u914d\u591a\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u8bbe\u5907\u7ec8\u7aef\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u786c\u4ef6\u7ea7\u5b89\u5168<\/span>&#xff1a;\u9690\u79c1\u4fdd\u62a4\u673a\u5236&#xff0c;\u4f8b\u5982&#xff0c;\u7528\u6237\u53ef\u4ee5\u8bbe\u7f6e\u76f8\u673a\u5e94\u7528\u53ea\u6709\u5728\u6253\u5f00\u5e94\u7528\u62cd\u7167\u65f6\u624d\u80fd\u8bbf\u95ee\u6444\u50cf\u5934&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<h4 style=\"margin-left:0.0001pt;margin-right:0px;text-align:left\">57\u3001\u6eda\u52a8\u5d4c\u5957\u5904\u7406\u65b9\u6cd5<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">Scroll\u5d4c\u5957List\u7684\u65f6\u5019&#xff0c;\u5982\u679cList\u9ed8\u8ba4\u4e0d\u8bbe\u7f6e\u9ad8\u5ea6\u662f\u4f1a\u9ed8\u8ba4\u5168\u90e8\u5c55\u5f00\u7684&#xff0c;\u53ef\u4ee5\u5b9e\u73b0Scroll\u6eda\u52a8\u6574\u4e2a\u5e03\u5c40\u7684\u6548\u679c&#xff0c;\u4f46\u662f\u8fd9\u6837\u4f1a\u5931\u53bb\u61d2\u52a0\u8f7d\u6548\u679c&#xff0c;\u53ef\u4ee5\u4f7f\u7528List\u7ec4\u4ef6\u7684nestedScroll\u5c5e\u6027\u6765\u5b9e\u73b0\u5d4c\u5957\u6eda\u52a8\u6548\u679c<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"112\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055054-6817003e434e4.png\" width=\"535\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u5411\u524d\u6eda\u52a8&#xff1a;\u7236\u7ea7\u4f18\u5148<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u5411\u540e\u6eda\u52a8&#xff1a;\u81ea\u8eab\u4f18\u5148<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<h4 style=\"background-color:transparent;margin-left:0.0001pt;margin-right:0px;text-align:left\">58\u3001\u62e6\u622a\u5668<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u8bf7\u6c42\u62e6\u622a\u5668<\/span>interceptors.request.use<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u53ef\u4ee5\u5728\u8fd9\u91cc\u83b7\u53d6\u4e00\u4e0btoken&#xff0c;\u628atoken\u62fc\u63a5\u5728\u8bf7\u6c42\u5934&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#ffff00\">\u54cd\u5e94\u62e6\u622a\u5668<\/span>interceptors.response.use<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5728\u8fd9\u91cc\u4e3b\u8981\u662f\u5904\u7406\u8fd4\u56de\u7684\u9519\u8bef\u7801&#xff0c;400\u4e00\u822c\u662f\u53c2\u6570\u9519\u8bef&#xff0c;401\u662ftoken\u4fe1\u606f\u9519\u8bef<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<h4>59\u3001git\u5982\u4f55\u7ba1\u7406\u4e00\u4e2a\u9879\u76ee&#xff1f;<\/h4>\n<p> 1.\u662f\u4ec0\u4e48 \u00a0 \u00a0 git\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u5de5\u5177 2.\u5e38\u89c1\u7684\u547d\u4ee4<\/p>\n<p>1.git clone\u5c06\u8fdc\u7a0b\u4ed3\u5e93\u7684\u9879\u76ee\u8d44\u6599\u4e0b\u8f7d\u4e0b\u6765<\/p>\n<p>2.git checkout -b dev(dev \u4e3a\u672c\u5730\u5206\u652f\u540d)<\/p>\n<p>3.git add .\u5c06\u5de5\u4f5c\u533a\u6587\u4ef6\u5b58\u5728\u6682\u5b58\u533a<\/p>\n<p>4.git commit -m&#034;&#034;\u4ece\u6682\u5b58\u533a\u5b58\u5230\u4ed3\u50a8\u533a<\/p>\n<p>5.\u4f7f\u7528git push\u5c06\u5176\u4e0a\u4f20\u5230\u8fdc\u7a0b\u4ed3\u5e93,\u63a8\u9001\u4e4b\u524d\u5148pull\u4e00\u4e0b<\/p>\n<h4>60\u3001Git\u5982\u4f55\u89e3\u51b3\u5408\u5e76\u51b2\u7a81&#xff1f;<\/h4>\n<p>1.\u51b2\u7a81\u7684\u539f\u56e0 \u4e0d\u540c\u5206\u652f,\u4e0d\u540c\u4ee3\u7801,\u76f8\u540c\u4f4d\u7f6e\u5c31\u4f1a\u4ea7\u51fa\u5408\u5e76\u51b2\u7a81\u95ee\u9898 2.\u89e3\u51b3\u529e\u6cd5 \u00a0 \u00a0 \u00a02.1.\u5982\u679c\u662f\u53cc\u65b9\u7684\u4ee3\u7801\u662f\u4e0d\u540c\u7684\u4e1a\u52a1&#xff0c;\u90a3\u5c31\u4fdd\u7559\u53cc\u65b9\u53cc\u65b9\u66f4\u6539(vscode\u6709\u63d0\u793a&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a02.2.\u5982\u679c\u662f\u91cd\u590d\u7684\u4e1a\u52a1\u903b\u8f91&#xff0c;\u90a3\u5c31\u9009\u62e9\u91c7\u7528\u5f53\u524d\u66f4\u6539(vscode\u6709\u63d0\u793a) \u5173\u8054\u77e5\u8bc6\u70b9&#061;&gt;\u5f00\u53d1\u4e2d\u5982\u4f55\u907f\u514d\u51b2\u7a81<\/p>\n<p> 100%\u907f\u514dgit\u51b2\u7a81\u662f\u4e0d\u53ef\u80fd\u7684&#xff0c;\u4f46\u53ef\u4ee5\u5c3d\u53ef\u80fd\u907f\u514d\u89e3\u51b3\u51b2\u7a81 1.\u53ef\u4ee5&#039;\u5c11\u91cf\u591a\u6b21&#039; \u63d0\u4ea4 2.\u63d0\u4ea4\u4ee3\u7801\u4e4b\u524d,\u5148pull-\u4e0b 3.\u4fdd\u6301\u56e2\u961f\u826f\u597d\u6c9f\u901a,\u534f\u540c\u5f00\u53d1,\u53ca\u65f6\u540c\u6b65\u4fe1\u606f<\/p>\n<h4>61\u3001\u6b63\u5728A\u5206\u652f\u5f00\u53d1&#xff0c;\u4f46\u662f\u6709\u7d27\u6025\u9700\u6c42\u9700\u8981\u5728B\u5206\u652f\u5904\u7406&#xff0c;\u6b64\u65f6A\u5206\u652f\u4ee3\u7801\u6ca1\u6709\u5f00\u53d1\u5b8c\u6574&#xff0c;\u53c8\u4e0d\u80fd\u63d0\u4ea4\u4ee3\u7801&#xff0c;\u8fd9\u4e2a\u65f6\u5019\u6682\u5b58\u672c\u5730\u4ee3\u7801,\u600e\u4e48\u505a<\/h4>\n<p>1.git stash \u6682\u5b58\u5f53\u524d\u6240\u6709\u7684\u4fee\u6539 2.git stash save&#039;\u5907\u6ce8\u5185\u5bb9 3.git stash pop \u5e94\u7528\u6700\u8fd1\u7684\u4e00\u6b21stash\u5e76\u5220\u9664<\/p>\n<h4 style=\"background-color:transparent\">62\u3001git merge \u548c git rebase\u7684\u533a\u522b<\/h4>\n<p>1.\u662f\u4ec0\u4e48 git rebase \u4e0e git merge \u89e3\u51b3\u4e86\u76f8\u540c\u7684\u95ee\u9898, \u90fd\u662f\u5c06\u4e00\u4e2a\u5206\u652f\u7684\u63d0\u4ea4\u5408\u5e76\u5230\u53e6\u4e00\u5206\u652f\u4e0a 2.\u533a\u522b rebase\u4f1a\u6539\u53d8\u63d0\u4ea4\u5386\u53f2;merge\u5219\u4f1a\u4fdd\u7559\u771f\u5b9e\u7684\u5386\u53f2 merge \u662f\u4e00\u4e2a\u5408\u5e76\u64cd\u4f5c&#xff0c;\u4f1a\u5c06\u4e24\u4e2a\u5206\u652f\u7684\u4fee\u6539\u5408\u5e76\u5728\u4e00\u8d77&#xff0c;\u9ed8\u8ba4\u64cd\u4f5c\u7684\u60c5\u51b5\u4e0b\u4f1a\u63d0\u4ea4\u5408\u5e76\u4e2d\u4fee\u6539\u7684\u5185\u5bb9\u00b7merge \u7684\u63d0\u4ea4\u5386\u53f2\u8bb0\u5f55\u4e86\u5b9e\u9645\u53d1\u751f\u8fc7\u4ec0\u4e48&#xff0c;\u5173\u6ce8\u70b9\u5728\u771f\u5b9e\u7684\u63d0\u4ea4\u5386\u53f2\u4e0a\u9762 rebase \u5e76\u6ca1\u6709\u8fdb\u884c\u5408\u5e76\u64cd\u4f5c&#xff0c;\u53ea\u662f\u63d0\u53d6\u4e86\u5f53\u524d\u5206\u652f\u7684\u4fee\u6539&#xff0c;\u5c06\u5176\u590d\u5236\u5728\u4e86\u76ee\u6807\u5206\u652f\u7684\u6700\u65b0\u63d0\u4ea4\u540e\u9762<\/p>\n<p>rebase \u64cd\u4f5c\u4f1a\u4e22\u5f03\u5f53\u524d\u5206\u652f\u5df2\u63d0\u4ea4\u7684 commit&#xff0c;\u6545\u4e0d\u8981\u5728\u5df2\u7ecf push \u5230\u8fdc\u7a0b&#xff0c;\u548c\u5176\u4ed6\u4eba\u6b63\u5728\u534f\u4f5c\u5f00\u53d1\u7684\u5206\u652f\u4e0a\u6267\u884c rebase \u64cd\u4f5c merge \u4e0e rebase \u90fd\u662f\u5f88\u597d\u7684\u5206\u652f\u5408\u5e76\u547d\u4ee4&#xff0c;\u6ca1\u6709\u597d\u574f\u4e4b\u5206&#xff0c;\u4f7f\u7528\u54ea\u4e00\u4e2a\u5e94\u7531\u56e2\u961f\u7684\u5b9e\u9645\u5f00\u53d1\u9700\u6c42\u53ca\u573a\u666f\u51b3\u5b9a<\/p>\n<\/p>\n<h4><\/h4>\n<h4 style=\"margin-left:.0001pt;text-align:justify\"><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb5.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf63\u6b21\u30021\u3001\u957f\u5217\u8868\u4f18\u5316 LayForEach\uff08\u865a\u62df\u5217\u8868\uff092\u3001\u4e24\u79cd\u8def\u7531\u65b9\u6848 (Navigation ) router\uff1a\u4e0d\u63a8\u83503\u3001\u4f60\u8ba4\u4e3aharmonyOS \u548copenHasrmony\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\uff08\u5f00\u6e90\u9e3f\u8499\u4e0e\u534e\u4e3a\u9e3f\u8499\uff094\u3001\u9e3f\u8499\u548c\u5b89\u5353 ios\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f5\u3001\u9e3f\u8499\u4e00\u591a\u5f00\u53d1\uff08\u9875\u9762\u9002\u914d\uff09?6\u3001hap hsp har \u5305?_\u9e3f\u8499\u5f00\u53d1\u9762\u8bd5\u9898<\/p>\n","protected":false},"author":2,"featured_media":35468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[280,187,67,447,43,1737],"topic":[],"class_list":["post-35476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-harmonyos","tag-javascript","tag-67","tag-od","tag-43","tag-1737"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/35476.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb5.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf63\u6b21\u30021\u3001\u957f\u5217\u8868\u4f18\u5316 LayForEach\uff08\u865a\u62df\u5217\u8868\uff092\u3001\u4e24\u79cd\u8def\u7531\u65b9\u6848 (Navigation ) router\uff1a\u4e0d\u63a8\u83503\u3001\u4f60\u8ba4\u4e3aharmonyOS \u548copenHasrmony\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\uff08\u5f00\u6e90\u9e3f\u8499\u4e0e\u534e\u4e3a\u9e3f\u8499\uff094\u3001\u9e3f\u8499\u548c\u5b89\u5353 ios\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f5\u3001\u9e3f\u8499\u4e00\u591a\u5f00\u53d1\uff08\u9875\u9762\u9002\u914d\uff09?6\u3001hap hsp har \u5305?_\u9e3f\u8499\u5f00\u53d1\u9762\u8bd5\u9898\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35476.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-04T05:50:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003d6b602.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35476.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35476.html\",\"name\":\"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-04T05:50:55+00:00\",\"dateModified\":\"2025-05-04T05:50:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35476.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35476.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35476.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/35476.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb5.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf63\u6b21\u30021\u3001\u957f\u5217\u8868\u4f18\u5316 LayForEach\uff08\u865a\u62df\u5217\u8868\uff092\u3001\u4e24\u79cd\u8def\u7531\u65b9\u6848 (Navigation ) router\uff1a\u4e0d\u63a8\u83503\u3001\u4f60\u8ba4\u4e3aharmonyOS \u548copenHasrmony\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\uff08\u5f00\u6e90\u9e3f\u8499\u4e0e\u534e\u4e3a\u9e3f\u8499\uff094\u3001\u9e3f\u8499\u548c\u5b89\u5353 ios\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f5\u3001\u9e3f\u8499\u4e00\u591a\u5f00\u53d1\uff08\u9875\u9762\u9002\u914d\uff09?6\u3001hap hsp har \u5305?_\u9e3f\u8499\u5f00\u53d1\u9762\u8bd5\u9898","og_url":"https:\/\/www.wsisp.com\/helps\/35476.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-04T05:50:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504055053-6817003d6b602.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"16 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35476.html","url":"https:\/\/www.wsisp.com\/helps\/35476.html","name":"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-04T05:50:55+00:00","dateModified":"2025-05-04T05:50:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35476.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35476.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35476.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9e3f\u8499\u5e38\u89c1\u9762\u8bd5\u9898\uff08\u6b22\u8fce\u6295\u7a3f\u4e00\u8d77\u5b8c\u5584\u6301\u7eed\u66f4\u65b0\u2014\u2014\u5df2\u66f4\u65b0\u523062\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=35476"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/35468"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35476"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}