{"id":87224,"date":"2026-07-30T03:16:28","date_gmt":"2026-07-29T19:16:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87224.html"},"modified":"2026-07-30T03:16:28","modified_gmt":"2026-07-29T19:16:28","slug":"%e3%80%90%e7%ac%94%e4%b8%8b%e7%94%9f%e8%be%89%ef%bd%9c13%e3%80%91harmonyos-arkts-%e5%ba%94%e7%94%a8%e5%90%af%e5%8a%a8%e9%93%be%e8%b7%af%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e-entryability-%e5%88%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87224.html","title":{"rendered":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u5e94\u7528\u542f\u52a8\u94fe\u8def\u5c01\u9762\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729191625-6a6a5189217e0.png\" \/><\/p>\n<p>\u672c\u6587\u57fa\u4e8e\u300c\u7b14\u4e0b\u751f\u8f89\u300dHarmonyOS 5.0&#043; ArkTS \u5de5\u7a0b\u6e90\u7801\u590d\u76d8&#xff0c;\u6838\u5fc3\u6587\u4ef6\u4e3a entry\/src\/main\/ets\/entryability\/EntryAbility.ets \u4e0e entry\/src\/main\/ets\/pages\/SplashPage.ets\u3002\u552f\u4e00\u590d\u6838\u6807\u8bb0&#xff1a;com.jiaweikang.one17\u3002\u672c\u6587\u53ea\u8ba8\u8bba\u6e90\u7801\u4e2d\u771f\u5b9e\u5b58\u5728\u7684\u542f\u52a8\u94fe\u8def\u3001\u7a97\u53e3\u5b89\u5168\u533a\u3001\u65ad\u70b9\u6ce8\u518c\u3001\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u548c\u9996\u5c4f\u8def\u7531&#xff0c;\u4e0d\u6269\u5c55\u4e3a\u8fdc\u7a0b\u542f\u52a8\u914d\u7f6e\u3001\u8d26\u53f7\u4f53\u7cfb\u3001\u5e7f\u544a\u3001\u4e91\u540c\u6b65\u6216\u6743\u9650\u5f39\u7a97\u3002<\/p>\n<h3>1. \u4e3a\u4ec0\u4e48\u542f\u52a8\u94fe\u8def\u503c\u5f97\u5355\u72ec\u62c6\u51fa\u6765<\/h3>\n<p>\u5f88\u591a HarmonyOS \u5e94\u7528\u7684\u9996\u5c4f\u95ee\u9898&#xff0c;\u5e76\u4e0d\u662f\u4e1a\u52a1\u9875\u9762\u5199\u9519\u4e86&#xff0c;\u800c\u662f\u542f\u52a8\u9636\u6bb5\u8d23\u4efb\u6ca1\u6709\u5206\u6e05\u3002EntryAbility \u65e2\u80fd\u62ff\u5230 Ability \u751f\u547d\u5468\u671f&#xff0c;\u53c8\u80fd\u62ff\u5230 WindowStage \u4e0e Window&#xff1b;\u4e1a\u52a1\u9996\u9875\u53c8\u9700\u8981\u5b89\u5168\u533a\u3001\u5e95\u90e8\u5bfc\u822a\u907f\u8ba9\u3001\u5f53\u524d Tab\u3001\u6536\u85cf\u9875 Tab\u3001\u65ad\u70b9\u7cfb\u7edf\u7b49\u57fa\u7840\u72b6\u6001\u3002\u5982\u679c\u6240\u6709\u4e8b\u60c5\u90fd\u653e\u5230\u9996\u9875\u7ec4\u4ef6\u91cc\u5904\u7406&#xff0c;\u9996\u9875\u5c31\u4f1a\u627f\u62c5\u8fc7\u591a\u5e73\u53f0\u521d\u59cb\u5316\u903b\u8f91&#xff0c;\u540e\u7eed\u9875\u9762\u4e5f\u5f88\u5bb9\u6613\u91cd\u590d\u8bfb\u53d6\u7a97\u53e3\u907f\u8ba9\u533a&#xff0c;\u751a\u81f3\u5728\u65cb\u8f6c\u3001\u5168\u5c4f\u3001\u624b\u52bf\u5bfc\u822a\u53d8\u5316\u65f6\u51fa\u73b0\u5e95\u90e8\u5185\u5bb9\u88ab\u7cfb\u7edf\u5bfc\u822a\u6761\u538b\u4f4f\u7684\u95ee\u9898\u3002<\/p>\n<p>\u300c\u7b14\u4e0b\u751f\u8f89\u300d\u8fd9\u6bb5\u6e90\u7801\u7684\u542f\u52a8\u94fe\u8def\u6bd4\u8f83\u6e05\u6670&#xff1a;EntryAbility.onCreate \u8d1f\u8d23\u5e94\u7528\u7ea7\u521d\u59cb\u5316&#xff0c;EntryAbility.onWindowStageCreate \u8d1f\u8d23\u7a97\u53e3\u7ea7\u521d\u59cb\u5316\u548c\u9996\u5c4f\u52a0\u8f7d&#xff0c;SplashPage \u8d1f\u8d23\u54c1\u724c\u542f\u52a8\u9875\u4e0e\u8df3\u8f6c&#xff0c;\u771f\u6b63\u7684\u4e1a\u52a1\u9996\u9875\u5728 router.replaceUrl({ url: &#039;pages\/Index&#039; }) \u4e4b\u540e\u63a5\u7ba1\u3002\u8fd9\u4e2a\u62c6\u6cd5\u7684\u4ef7\u503c\u4e0d\u662f\u590d\u6742&#xff0c;\u800c\u662f\u628a\u6bcf\u4e00\u5c42\u7684\u751f\u547d\u5468\u671f\u8fb9\u754c\u653e\u5728\u6b63\u786e\u7684\u4f4d\u7f6e\u4e0a\u3002<\/p>\n<p>\u4ece\u4ee3\u7801\u770b&#xff0c;\u542f\u52a8\u94fe\u8def\u81f3\u5c11\u5904\u7406\u4e86\u56db\u7c7b\u95ee\u9898\u3002\u7b2c\u4e00\u7c7b\u662f\u89c6\u89c9\u548c\u7cfb\u7edf\u680f&#xff1a;\u5e94\u7528\u5c1d\u8bd5\u56fa\u5b9a\u6d45\u8272\u6a21\u5f0f&#xff0c;\u5e76\u628a\u72b6\u6001\u680f\u3001\u5bfc\u822a\u680f\u5185\u5bb9\u8272\u8bbe\u7f6e\u4e3a\u9ed1\u8272&#xff0c;\u907f\u514d\u6d45\u8272\u542f\u52a8\u80cc\u666f\u4e0b\u7cfb\u7edf\u680f\u56fe\u6807\u4e0d\u53ef\u8bfb\u3002\u7b2c\u4e8c\u7c7b\u662f\u672c\u5730\u57fa\u7840\u6570\u636e&#xff1a;UserDataManager.init(this.context) \u5728 Ability \u521b\u5efa\u9636\u6bb5\u5b8c\u6210&#xff0c;\u8ba9\u540e\u7eed\u9875\u9762\u53ef\u4ee5\u4f7f\u7528\u5df2\u7ecf\u521d\u59cb\u5316\u7684\u672c\u5730\u6570\u636e\u670d\u52a1\u3002\u7b2c\u4e09\u7c7b\u662f\u5168\u5c40\u8f7b\u91cf\u72b6\u6001&#xff1a;\u5f53\u524d Tab\u3001\u6536\u85cf Tab\u3001\u9876\u90e8\u907f\u8ba9\u533a\u9ad8\u5ea6\u3001\u5e95\u90e8\u5bfc\u822a\u6307\u793a\u5668\u9ad8\u5ea6\u90fd\u901a\u8fc7 AppStorage.setOrCreate \u521d\u59cb\u5316\u3002\u7b2c\u56db\u7c7b\u662f\u7a97\u53e3\u5b89\u5168\u533a&#xff1a;mainWindow.getWindowAvoidArea \u8bfb\u53d6\u7cfb\u7edf\u533a\u57df\u548c\u5bfc\u822a\u6307\u793a\u5668\u533a\u57df&#xff0c;\u5e76\u901a\u8fc7 avoidAreaChange \u76d1\u542c\u53d8\u5316\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u4e0d\u628a\u542f\u52a8\u94fe\u8def\u5305\u88c5\u6210\u4e0d\u5b58\u5728\u7684\u201c\u79d2\u5f00\u5f15\u64ce\u201d&#xff0c;\u4e5f\u4e0d\u58f0\u79f0\u5b9e\u73b0\u4e86\u8fdc\u7a0b\u914d\u7f6e\u3001\u52a8\u6001\u6295\u653e\u6216\u4e91\u7aef\u7070\u5ea6\u3002\u6e90\u7801\u80fd\u590d\u6838\u5230\u7684\u662f&#xff1a;\u5b83\u7528 Stage \u6a21\u578b\u7684 Ability \u751f\u547d\u5468\u671f\u628a\u521d\u59cb\u5316\u62c6\u6210\u5e94\u7528\u5c42\u548c\u7a97\u53e3\u5c42&#xff1b;\u7528 AppStorage \u4f20\u9012\u8de8\u9875\u9762\u9700\u8981\u7684\u907f\u8ba9\u533a\u548c Tab \u521d\u59cb\u503c&#xff1b;\u7528\u542f\u52a8\u9875\u5ef6\u8fdf\u8df3\u8f6c\u628a\u9996\u5c4f\u54c1\u724c\u9732\u51fa\u4e0e\u4e3b\u9875\u52a0\u8f7d\u89e3\u8026&#xff1b;\u7528\u9500\u6bc1\u9636\u6bb5\u6e05\u7406 timer \u548c\u7a97\u53e3\u56de\u8c03&#xff0c;\u964d\u4f4e\u751f\u547d\u5468\u671f\u6b8b\u7559\u98ce\u9669\u3002<\/p>\n<h3>2. EntryAbility \u662f\u542f\u52a8\u534f\u8c03\u5668&#xff0c;\u4e0d\u662f\u4e1a\u52a1\u9875\u9762<\/h3>\n<p>EntryAbility.ets \u7ee7\u627f\u81ea UIAbility&#xff0c;\u8fd9\u662f Stage \u6a21\u578b\u5e94\u7528\u5165\u53e3\u4e2d\u6700\u5173\u952e\u7684\u5bf9\u8c61\u4e4b\u4e00\u3002\u5b83\u7684\u804c\u8d23\u4e0d\u662f\u753b\u9875\u9762&#xff0c;\u800c\u662f\u5728\u7cfb\u7edf\u521b\u5efa Ability\u3001\u521b\u5efa\u7a97\u53e3\u3001\u9500\u6bc1\u7a97\u53e3\u3001\u9500\u6bc1 Ability \u65f6&#xff0c;\u628a\u5e73\u53f0\u4fa7\u80fd\u529b\u7ec4\u7ec7\u597d\u3002\u6e90\u7801\u91cc\u5bfc\u5165\u4e86 AbilityConstant\u3001ConfigurationConstant\u3001UIAbility\u3001Want\u3001hilog\u3001window&#xff0c;\u540c\u65f6\u63a5\u5165\u4e86\u9879\u76ee\u81ea\u5df1\u7684 UserDataManager \u548c BreakpointSystem\u3002\u8fd9\u4e9b\u4f9d\u8d56\u5df2\u7ecf\u8bf4\u660e\u5b83\u627f\u62c5\u7684\u662f\u201c\u542f\u52a8\u534f\u8c03\u5668\u201d\u89d2\u8272\u3002<\/p>\n<p>onCreate(want: Want, launchParam: AbilityConstant.LaunchParam) \u4e2d&#xff0c;\u4ee3\u7801\u9996\u5148\u5c1d\u8bd5\u6267\u884c&#xff1a;<\/p>\n<p>this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT) <\/p>\n<p>\u8fd9\u4e00\u884c\u7684\u76ee\u6807\u5f88\u660e\u786e&#xff1a;\u542f\u52a8\u9636\u6bb5\u628a\u5e94\u7528\u89c6\u89c9\u73af\u5883\u7ea6\u675f\u4e3a\u6d45\u8272\u6a21\u5f0f\u3002\u5bf9\u4e00\u6b3e\u5199\u4f5c\u7c7b\u5e94\u7528\u6765\u8bf4&#xff0c;\u6d45\u8272\u80cc\u666f\u3001\u9ed1\u8272\u6587\u5b57\u548c\u6d45\u8272\u542f\u52a8\u9875\u662f\u4e00\u5957\u4e00\u81f4\u7684\u89c6\u89c9\u9884\u671f\u3002\u5982\u679c\u7cfb\u7edf\u5904\u4e8e\u6df1\u8272\u6a21\u5f0f&#xff0c;\u800c\u542f\u52a8\u9875\u6ca1\u6709\u5b8c\u6574\u6697\u8272\u8d44\u6e90\u6216\u6697\u8272\u7cfb\u7edf\u680f\u9002\u914d&#xff0c;\u5f3a\u884c\u8ddf\u968f\u7cfb\u7edf\u53ef\u80fd\u5bfc\u81f4\u72b6\u6001\u680f\u6587\u5b57\u3001Logo \u6216\u80cc\u666f\u5bf9\u6bd4\u5ea6\u4e0d\u7a33\u5b9a\u3002\u6e90\u7801\u6ca1\u6709\u5728\u8fd9\u91cc\u58f0\u79f0\u652f\u6301\u5b8c\u6574\u6df1\u8272\u6a21\u5f0f&#xff0c;\u800c\u662f\u7528\u663e\u5f0f\u6d45\u8272\u6a21\u5f0f\u4fdd\u8bc1\u5f53\u524d\u7248\u672c\u542f\u52a8\u53ef\u63a7\u3002<\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u662f&#xff0c;\u8fd9\u6bb5\u8bbe\u7f6e\u5305\u5728 try\/catch \u4e2d\u3002\u5982\u679c\u989c\u8272\u6a21\u5f0f\u8bbe\u7f6e\u5931\u8d25&#xff0c;\u4ee3\u7801\u53ea\u5199\u5165 hilog.warn&#xff0c;\u4e0d\u4f1a\u963b\u65ad\u542f\u52a8\u3002\u8fd9\u662f\u542f\u52a8\u94fe\u8def\u91cc\u5f88\u91cd\u8981\u7684\u5bb9\u9519\u601d\u60f3&#xff1a;\u89c6\u89c9\u6a21\u5f0f\u5c5e\u4e8e\u589e\u5f3a\u7a33\u5b9a\u6027\u7684\u8bbe\u7f6e&#xff0c;\u4f46\u4e0d\u80fd\u56e0\u4e3a\u5b83\u5931\u8d25\u5c31\u8ba9\u6574\u4e2a\u9875\u9762\u767d\u5c4f\u3002\u5e94\u7528\u542f\u52a8\u9636\u6bb5\u5e94\u533a\u5206\u201c\u5fc5\u987b\u6210\u529f\u624d\u80fd\u8fdb\u5165\u9996\u9875\u201d\u7684\u6b65\u9aa4\u548c\u201c\u5931\u8d25\u540e\u53ef\u964d\u7ea7\u7ee7\u7eed\u201d\u7684\u6b65\u9aa4\u3002\u989c\u8272\u6a21\u5f0f\u8bbe\u7f6e\u5931\u8d25\u65f6&#xff0c;\u7cfb\u7edf\u4ecd\u7136\u53ef\u4ee5\u7ee7\u7eed\u8d70\u7a97\u53e3\u521b\u5efa\u548c\u9875\u9762\u52a0\u8f7d\u3002<\/p>\n<p>\u968f\u540e&#xff0c;\u6e90\u7801\u8c03\u7528&#xff1a;<\/p>\n<p>UserDataManager.init(this.context) <\/p>\n<p>\u8fd9\u4e00\u6b65\u628a\u672c\u5730\u6570\u636e\u7ba1\u7406\u5668\u521d\u59cb\u5316\u653e\u5728 Ability \u521b\u5efa\u9636\u6bb5&#xff0c;\u800c\u4e0d\u662f\u653e\u5230\u9996\u9875\u7ec4\u4ef6\u9996\u6b21\u6e32\u67d3\u65f6\u3002\u8fd9\u6837\u505a\u7684\u76f4\u63a5\u597d\u5904\u662f&#xff1a;\u9875\u9762\u7ec4\u4ef6\u4e0d\u9700\u8981\u6301\u6709\u5bbd\u6cdb\u7684 Context&#xff0c;\u4e5f\u4e0d\u9700\u8981\u5728 UI \u6811\u91cc\u505a\u5e73\u53f0\u521d\u59cb\u5316\u3002\u9875\u9762\u53ea\u6d88\u8d39\u670d\u52a1\u5c42\u66b4\u9732\u51fa\u6765\u7684\u6570\u636e\u548c\u72b6\u6001&#xff0c;\u5e73\u53f0\u80fd\u529b\u5165\u53e3\u4ecd\u7136\u505c\u7559\u5728 Ability \u8fb9\u754c\u3002\u5bf9\u4e8e HarmonyOS ArkTS \u5de5\u7a0b&#xff0c;\u907f\u514d\u628a Context \u5230\u5904\u4f20\u9012&#xff0c;\u662f\u51cf\u5c11\u751f\u547d\u5468\u671f\u8026\u5408\u548c\u7f16\u8bd1\u8106\u5f31\u70b9\u7684\u6709\u6548\u505a\u6cd5\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u662f\u51e0\u7ec4 AppStorage.setOrCreate&#xff1a;<\/p>\n<p>AppStorage.setOrCreate&lt;number&gt;(&#039;currentTabIndex&#039;, 0)<br \/>\nAppStorage.setOrCreate&lt;number&gt;(&#039;favoriteTabIndex&#039;, 0)<br \/>\nAppStorage.setOrCreate&lt;number&gt;(&#039;topAvoidAreaHeightPx&#039;, 0)<br \/>\nAppStorage.setOrCreate&lt;number&gt;(&#039;navigationIndicatorHeightPx&#039;, 0) <\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u7ec6\u8282&#xff1a;\u5b83\u7528\u7684\u662f setOrCreate&#xff0c;\u4e0d\u662f\u65e0\u6761\u4ef6\u8986\u76d6\u67d0\u4e2a\u9875\u9762\u72b6\u6001\u3002currentTabIndex \u548c favoriteTabIndex \u662f\u8de8\u9875\u9762\u6216\u8de8\u7ec4\u4ef6\u9700\u8981\u5171\u4eab\u7684\u8f7b\u91cf UI \u72b6\u6001&#xff0c;\u542f\u52a8\u65f6\u7ed9\u9ed8\u8ba4\u503c\u53ef\u4ee5\u4fdd\u8bc1\u9996\u9875\u3001\u6536\u85cf\u9875\u3001\u5e95\u90e8\u5bfc\u822a\u7b49\u7ec4\u4ef6\u8bfb\u5230\u786e\u5b9a\u503c\u3002topAvoidAreaHeightPx \u4e0e navigationIndicatorHeightPx \u662f\u7a97\u53e3\u907f\u8ba9\u533a\u7684\u5168\u5c40\u89c2\u6d4b\u503c&#xff0c;\u540e\u7eed\u9875\u9762\u53ef\u4ee5\u901a\u8fc7 AppStorage \u611f\u77e5\u7cfb\u7edf\u9876\u90e8\u548c\u5e95\u90e8\u7a7a\u95f4\u3002<\/p>\n<p>\u6700\u540e&#xff0c;BreakpointSystem.register() \u5728 onCreate \u4e2d\u5b8c\u6210\u6ce8\u518c\u3002\u65ad\u70b9\u7cfb\u7edf\u672c\u8eab\u4e0d\u662f\u672c\u6587\u91cd\u70b9&#xff0c;\u4f46\u5b83\u5728\u542f\u52a8\u94fe\u8def\u4e2d\u51fa\u73b0&#xff0c;\u8bf4\u660e\u9879\u76ee\u8003\u8651\u4e86\u5c4f\u5e55\u5bbd\u5ea6\u3001\u8bbe\u5907\u5f62\u6001\u6216\u7a97\u53e3\u5c3a\u5bf8\u53d8\u5316\u5bf9\u9875\u9762\u5e03\u5c40\u7684\u5f71\u54cd\u3002\u628a\u65ad\u70b9\u6ce8\u518c\u653e\u5728 Ability \u521b\u5efa\u9636\u6bb5&#xff0c;\u53ef\u4ee5\u8ba9\u540e\u7eed\u9875\u9762\u5728\u52a0\u8f7d\u65f6\u5c31\u5177\u5907\u54cd\u5e94\u5f0f\u5e03\u5c40\u5224\u65ad\u57fa\u7840&#xff0c;\u800c\u4e0d\u662f\u7b49\u9996\u9875\u6e32\u67d3\u540e\u518d\u8865\u6ce8\u518c\u3002<\/p>\n<h3>3. onWindowStageCreate \u5904\u7406\u7a97\u53e3&#xff0c;\u4e0d\u62a2\u4e1a\u52a1\u9996\u9875\u804c\u8d23<\/h3>\n<p><img decoding=\"async\" alt=\"\u5e94\u7528\u542f\u52a8\u7a33\u5b9a\u94fe\u8def\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729191625-6a6a5189f03c3.png\" \/><\/p>\n<p>onWindowStageCreate(windowStage: window.WindowStage) \u662f\u8fd9\u6761\u94fe\u8def\u7684\u7b2c\u4e8c\u4e2a\u5173\u952e\u70b9\u3002\u5b83\u548c onCreate \u7684\u533a\u522b\u5728\u4e8e&#xff1a;onCreate \u62ff\u5230\u7684\u662f\u5e94\u7528\/Ability \u4e0a\u4e0b\u6587&#xff0c;\u9002\u5408\u521d\u59cb\u5316\u672c\u5730\u670d\u52a1\u3001AppStorage \u9ed8\u8ba4\u503c\u3001\u65ad\u70b9\u7cfb\u7edf&#xff1b;onWindowStageCreate \u62ff\u5230\u7684\u662f WindowStage&#xff0c;\u9002\u5408\u83b7\u53d6\u4e3b\u7a97\u53e3\u3001\u8bbe\u7f6e\u5168\u5c4f\u3001\u7cfb\u7edf\u680f\u3001\u907f\u8ba9\u533a\u76d1\u542c&#xff0c;\u5e76\u52a0\u8f7d\u9996\u4e2a\u9875\u9762\u3002<\/p>\n<p>\u6e90\u7801\u4e2d\u5148\u6267\u884c&#xff1a;<\/p>\n<p>const mainWindow &#061; windowStage.getMainWindowSync()<br \/>\nthis.mainWindow &#061; mainWindow <\/p>\n<p>\u628a\u4e3b\u7a97\u53e3\u4fdd\u5b58\u5230\u6210\u5458\u53d8\u91cf&#xff0c;\u662f\u4e3a\u4e86\u540e\u7eed updateNavigationIndicatorHeight() \u80fd\u8bfb\u53d6\u907f\u8ba9\u533a&#xff0c;\u4e5f\u4e3a\u4e86\u9500\u6bc1\u9636\u6bb5\u80fd\u6ce8\u9500\u56de\u8c03\u3002\u8fd9\u4e2a\u6210\u5458\u53d8\u91cf\u4e0d\u662f\u4e1a\u52a1\u5168\u5c40\u72b6\u6001&#xff0c;\u800c\u662f Ability \u5bf9\u7a97\u53e3\u751f\u547d\u5468\u671f\u7684\u6301\u6709\u3002\u5b83\u7684\u751f\u547d\u5468\u671f\u4e0e\u7a97\u53e3\u9636\u6bb5\u7ed1\u5b9a&#xff0c;\u540e\u9762\u5728 onWindowStageDestroy \u4e2d\u4f1a\u88ab\u6e05\u7a7a\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5c1d\u8bd5\u8bbe\u7f6e\u5168\u5c4f\u5e03\u5c40&#xff1a;<\/p>\n<p>mainWindow.setWindowLayoutFullScreen(true) <\/p>\n<p>\u8fd9\u8868\u793a\u5e94\u7528\u5185\u5bb9\u53ef\u4ee5\u5ef6\u4f38\u5230\u7cfb\u7edf\u680f\u533a\u57df\u3002\u5168\u5c4f\u5e03\u5c40\u4e0d\u662f\u5355\u72ec\u4f7f\u7528\u7684&#xff0c;\u5b83\u5fc5\u987b\u914d\u5408\u5b89\u5168\u533a\u5904\u7406&#xff0c;\u5426\u5219\u9875\u9762\u9876\u90e8\u6216\u5e95\u90e8\u5c31\u53ef\u80fd\u88ab\u72b6\u6001\u680f\u3001\u5bfc\u822a\u624b\u52bf\u533a\u57df\u906e\u6321\u3002\u56e0\u6b64\u540e\u7eed\u4ee3\u7801\u7d27\u63a5\u7740\u8bfb\u53d6 TYPE_NAVIGATION_INDICATOR \u548c TYPE_SYSTEM \u7684\u907f\u8ba9\u533a\u57df&#xff0c;\u5e76\u628a\u9ad8\u5ea6\u5199\u5165 AppStorage\u3002\u8fd9\u4e5f\u662f\u6e90\u7801\u94fe\u8def\u503c\u5f97\u80af\u5b9a\u7684\u5730\u65b9&#xff1a;\u5b83\u6ca1\u6709\u53ea\u8bbe\u7f6e\u5168\u5c4f\u6837\u5f0f&#xff0c;\u800c\u662f\u540c\u6b65\u5904\u7406\u4e86\u5168\u5c4f\u4e4b\u540e\u7684\u5185\u5bb9\u907f\u8ba9\u95ee\u9898\u3002<\/p>\n<p>\u7cfb\u7edf\u680f\u989c\u8272\u8bbe\u7f6e\u5982\u4e0b&#xff1a;<\/p>\n<p>mainWindow.setWindowSystemBarProperties({<br \/>\n  statusBarContentColor: &#039;#000000&#039;,<br \/>\n  navigationBarContentColor: &#039;#000000&#039;<br \/>\n}) <\/p>\n<p>\u8fd9\u4e0e\u524d\u9762\u7684\u6d45\u8272\u6a21\u5f0f\u4fdd\u6301\u4e00\u81f4\u3002\u542f\u52a8\u9875\u80cc\u666f\u4f7f\u7528 Colors.BACKGROUND&#xff0c;\u9875\u9762\u4e3b\u4f53\u662f\u5199\u4f5c\u7c7b\u5e94\u7528\u5e38\u89c1\u7684\u8f7b\u8272\u89c6\u89c9\u3002\u72b6\u6001\u680f\u548c\u5bfc\u822a\u680f\u56fe\u6807\u5185\u5bb9\u8bbe\u4e3a\u9ed1\u8272&#xff0c;\u53ef\u4ee5\u907f\u514d\u6d45\u5e95\u4e0a\u767d\u8272\u7cfb\u7edf\u56fe\u6807\u4e0d\u53ef\u89c1\u3002\u8fd9\u91cc\u4ecd\u7136\u88ab\u5305\u5728 try\/catch \u4e2d&#xff0c;\u8bf4\u660e\u7a97\u53e3\u89c6\u89c9\u914d\u7f6e\u5931\u8d25\u65f6&#xff0c;\u5e94\u7528\u4e0d\u4f1a\u76f4\u63a5\u4e2d\u65ad\u3002<\/p>\n<p>\u518d\u5f80\u4e0b\u662f\u5b89\u5168\u533a\u521d\u59cb\u5316\u548c\u76d1\u542c&#xff1a;<\/p>\n<p>this.updateNavigationIndicatorHeight()<br \/>\nthis.avoidAreaCallback &#061; (data: window.AvoidAreaOptions) &#061;&gt; {<br \/>\n  if (data.type &#061;&#061;&#061; window.AvoidAreaType.TYPE_NAVIGATION_INDICATOR ||<br \/>\n      data.type &#061;&#061;&#061; window.AvoidAreaType.TYPE_SYSTEM) {<br \/>\n    this.updateNavigationIndicatorHeight()<br \/>\n  }<br \/>\n}<br \/>\nmainWindow.on(&#039;avoidAreaChange&#039;, this.avoidAreaCallback) <\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u6838\u5fc3\u662f\u4e24\u6b65&#xff1a;\u5148\u4e3b\u52a8\u8bfb\u53d6\u4e00\u6b21\u5f53\u524d\u7a97\u53e3\u907f\u8ba9\u533a&#xff0c;\u518d\u76d1\u542c\u53d8\u5316\u3002\u4e3b\u52a8\u8bfb\u53d6\u89e3\u51b3\u9996\u6b21\u6e32\u67d3\u524d\u7684\u9ed8\u8ba4\u503c\u95ee\u9898&#xff1b;\u76d1\u542c\u53d8\u5316\u89e3\u51b3\u7cfb\u7edf\u533a\u57df\u53d8\u5316\u3001\u7a97\u53e3\u53d8\u5316\u3001\u5bfc\u822a\u6a21\u5f0f\u53d8\u5316\u540e\u7684\u66f4\u65b0\u95ee\u9898\u3002\u5bf9\u4e8e\u624b\u673a\u3001\u6298\u53e0\u5c4f\u3001\u5e73\u677f\u6216 2in1 \u7a97\u53e3&#xff0c;\u5e95\u90e8\u624b\u52bf\u533a\u548c\u7cfb\u7edf\u5bfc\u822a\u533a\u57df\u5e76\u4e0d\u662f\u6c38\u8fdc\u56fa\u5b9a\u7684\u3002\u542f\u52a8\u9636\u6bb5\u5efa\u7acb\u8fd9\u4e2a\u76d1\u542c&#xff0c;\u53ef\u4ee5\u8ba9\u540e\u7eed\u9875\u9762\u4e0d\u9700\u8981\u5404\u81ea\u91cd\u590d\u6ce8\u518c\u7a97\u53e3\u56de\u8c03\u3002<\/p>\n<p>\u6700\u540e&#xff0c;\u6e90\u7801\u8c03\u7528&#xff1a;<\/p>\n<p>windowStage.loadContent(&#039;pages\/SplashPage&#039;, (err) &#061;&gt; { &#8230; }) <\/p>\n<p>\u8fd9\u91cc\u52a0\u8f7d\u7684\u662f SplashPage&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u52a0\u8f7d Index\u3002\u8fd9\u8bf4\u660e\u542f\u52a8\u94fe\u8def\u88ab\u62c6\u6210\u201c\u5e73\u53f0\u521d\u59cb\u5316\u5b8c\u6210\u540e\u5148\u8fdb\u5165\u54c1\u724c\u542f\u52a8\u9875&#xff0c;\u518d\u7531\u542f\u52a8\u9875\u8df3\u8f6c\u9996\u9875\u201d\u3002loadContent \u7684\u56de\u8c03\u91cc\u5982\u679c err.code \u975e\u96f6&#xff0c;\u4f1a\u5199\u5165\u9519\u8bef\u65e5\u5fd7&#xff1b;\u6210\u529f\u5219\u5199\u5165\u5b8c\u6210\u65e5\u5fd7\u3002\u5b83\u6ca1\u6709\u4f2a\u88c5\u5931\u8d25\u4e3a\u6210\u529f&#xff0c;\u4e5f\u6ca1\u6709\u5728\u5931\u8d25\u65f6\u7ee7\u7eed\u6267\u884c\u4e0d\u786e\u5b9a\u8df3\u8f6c\u3002\u8fd9\u79cd\u65e5\u5fd7\u8fb9\u754c\u5bf9\u6392\u67e5\u767d\u5c4f\u3001\u9996\u5c4f\u672a\u52a0\u8f7d\u3001\u8def\u7531\u672a\u6ce8\u518c\u7b49\u95ee\u9898\u5f88\u6709\u7528\u3002<\/p>\n<h3>4. \u5b89\u5168\u533a\u9ad8\u5ea6\u4e3a\u4ec0\u4e48\u8981\u5199\u5230 AppStorage<\/h3>\n<p>\u6e90\u7801\u91cc\u7684 updateNavigationIndicatorHeight() \u662f\u672c\u6587\u6700\u503c\u5f97\u7ec6\u770b\u7684\u65b9\u6cd5\u3002\u5b83\u4e0d\u662f\u5355\u7eaf\u83b7\u53d6\u4e00\u4e2a\u5e95\u90e8\u9ad8\u5ea6&#xff0c;\u800c\u662f\u540c\u65f6\u5904\u7406\u9876\u90e8\u7cfb\u7edf\u533a\u57df\u548c\u5e95\u90e8\u5bfc\u822a\u533a\u57df\u3002<\/p>\n<p>\u65b9\u6cd5\u5148\u5224\u65ad this.mainWindow \u662f\u5426\u5b58\u5728\u3002\u5982\u679c\u7a97\u53e3\u8fd8\u6ca1\u6709\u51c6\u5907\u597d&#xff0c;\u5c31\u628a topAvoidAreaHeightPx \u548c navigationIndicatorHeightPx \u90fd\u5199\u6210 0\u3002\u8fd9\u4e2a\u5206\u652f\u907f\u514d\u4e86\u7a7a\u7a97\u53e3\u72b6\u6001\u4e0b\u7ee7\u7eed\u8c03\u7528 getWindowAvoidArea\u3002\u542f\u52a8\u94fe\u8def\u4e2d&#xff0c;\u7a97\u53e3\u5bf9\u8c61\u4e0d\u662f\u4ece\u5e94\u7528\u521b\u5efa\u90a3\u4e00\u523b\u5c31\u5929\u7136\u5b58\u5728&#xff0c;\u5b83\u662f\u5728 onWindowStageCreate \u4e2d\u624d\u7a33\u5b9a\u53ef\u7528\u3002<\/p>\n<p>\u5f53 mainWindow \u5b58\u5728\u65f6&#xff0c;\u65b9\u6cd5\u8bfb\u53d6\u4e24\u7c7b\u533a\u57df&#xff1a;<\/p>\n<p>const navigationArea &#061; this.mainWindow.getWindowAvoidArea(window.AvoidAreaType.TYPE_NAVIGATION_INDICATOR)<br \/>\nconst systemArea &#061; this.mainWindow.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM) <\/p>\n<p>TYPE_SYSTEM \u53ef\u4ee5\u63d0\u4f9b\u72b6\u6001\u680f\u3001\u7cfb\u7edf\u5bfc\u822a\u680f\u7b49\u533a\u57df&#xff1b;TYPE_NAVIGATION_INDICATOR \u66f4\u8d34\u8fd1\u5e95\u90e8\u624b\u52bf\u5bfc\u822a\u6307\u793a\u533a\u57df\u3002\u4ee3\u7801\u5206\u522b\u53d6&#xff1a;<\/p>\n<p>const topHeight &#061; systemArea.visible ? systemArea.topRect.height : 0<br \/>\nconst navigationHeight &#061; navigationArea.visible ? navigationArea.bottomRect.height : 0<br \/>\nconst systemHeight &#061; systemArea.visible ? systemArea.bottomRect.height : 0 <\/p>\n<p>\u7136\u540e\u628a\u9876\u90e8\u9ad8\u5ea6\u5199\u5165 topAvoidAreaHeightPx&#xff0c;\u628a\u5e95\u90e8\u9ad8\u5ea6\u5199\u4e3a Math.max(navigationHeight, systemHeight)\u3002\u8fd9\u4e2a max \u5f88\u5b9e\u7528&#xff1a;\u4e0d\u540c\u8bbe\u5907\u548c\u5bfc\u822a\u6a21\u5f0f\u4e0b&#xff0c;\u5e95\u90e8\u907f\u8ba9\u4fe1\u606f\u53ef\u80fd\u6765\u81ea\u5bfc\u822a\u6307\u793a\u5668&#xff0c;\u4e5f\u53ef\u80fd\u6765\u81ea\u7cfb\u7edf\u533a\u57df\u3002\u53d6\u6700\u5927\u503c\u80fd\u8ba9\u9875\u9762\u5e95\u90e8\u64cd\u4f5c\u533a\u66f4\u7a33&#xff0c;\u907f\u514d\u53ea\u8bfb\u5176\u4e2d\u4e00\u79cd\u533a\u57df\u5bfc\u81f4\u90e8\u5206\u673a\u578b\u4e0a\u5e95\u90e8\u6309\u94ae\u8d34\u8fd1\u7cfb\u7edf\u624b\u52bf\u533a\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u8ba9\u6bcf\u4e2a\u9875\u9762\u81ea\u5df1\u8bfb\u53d6\u7a97\u53e3\u5b89\u5168\u533a&#xff1f;\u539f\u56e0\u6709\u4e09\u4e2a\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u9875\u9762\u7ec4\u4ef6\u4e0d\u4e00\u5b9a\u9002\u5408\u76f4\u63a5\u64cd\u4f5c window.Window\u3002\u7a97\u53e3\u5bf9\u8c61\u6765\u81ea WindowStage&#xff0c;\u5c5e\u4e8e Ability\/\u7a97\u53e3\u751f\u547d\u5468\u671f\u8fb9\u754c\u3002\u628a\u5b83\u6563\u843d\u5230\u9875\u9762\u91cc&#xff0c;\u4f1a\u589e\u52a0\u751f\u547d\u5468\u671f\u8026\u5408\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u591a\u9875\u9762\u91cd\u590d\u76d1\u542c\u5bb9\u6613\u9020\u6210\u56de\u8c03\u7ba1\u7406\u6df7\u4e71\u3002\u542f\u52a8\u5165\u53e3\u7edf\u4e00\u76d1\u542c&#xff0c;\u9500\u6bc1\u65f6\u7edf\u4e00\u6ce8\u9500&#xff0c;\u804c\u8d23\u66f4\u6e05\u695a\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u907f\u8ba9\u533a\u9ad8\u5ea6\u5c5e\u4e8e\u8de8\u9875\u9762\u8f7b\u91cf\u73af\u5883\u72b6\u6001&#xff0c;\u9002\u5408\u653e\u5728 AppStorage \u4e2d\u3002\u6bd4\u5982\u9996\u9875\u5e95\u90e8\u5bfc\u822a\u3001\u6536\u85cf\u9875\u5217\u8868\u5e95\u90e8\u7559\u767d\u3001\u8bbe\u7f6e\u9875\u6eda\u52a8\u5bb9\u5668&#xff0c;\u90fd\u53ef\u4ee5\u57fa\u4e8e\u540c\u4e00\u4efd\u9ad8\u5ea6\u505a\u9002\u914d&#xff0c;\u907f\u514d\u6bcf\u4e2a\u9875\u9762\u786c\u7f16\u7801\u4e00\u4e2a\u5e95\u90e8 padding\u3002<\/p>\n<p>\u5f53\u7136&#xff0c;AppStorage \u4e0d\u9002\u5408\u5b58\u590d\u6742\u4e1a\u52a1\u6570\u636e&#xff0c;\u4e5f\u4e0d\u5e94\u8be5\u66ff\u4ee3\u670d\u52a1\u5c42\u6216\u6570\u636e\u5e93\u3002\u8fd9\u91cc\u5b58\u7684\u662f\u6570\u5b57\u578b UI \u73af\u5883\u72b6\u6001&#xff0c;\u751f\u547d\u5468\u671f\u548c\u7528\u9014\u90fd\u5f88\u8f7b&#xff0c;\u5c5e\u4e8e\u5408\u7406\u4f7f\u7528\u8303\u56f4\u3002<\/p>\n<h3>5. SplashPage \u8d1f\u8d23\u9996\u5c4f\u8868\u8fbe\u548c\u786e\u5b9a\u6027\u8df3\u8f6c<\/h3>\n<p>SplashPage.ets \u7684\u903b\u8f91\u5f88\u96c6\u4e2d\u3002\u5b83\u6ca1\u6709\u53bb\u521d\u59cb\u5316\u6570\u636e&#xff0c;\u4e5f\u6ca1\u6709\u8bfb\u53d6\u7a97\u53e3\u5b89\u5168\u533a&#xff0c;\u66f4\u6ca1\u6709\u5904\u7406\u6743\u9650\u6216\u8d26\u53f7\u72b6\u6001\u3002\u5b83\u53ea\u505a\u4e09\u4ef6\u4e8b&#xff1a;\u5c55\u793a\u542f\u52a8\u9875\u3001\u64ad\u653e\u8fdb\u5165\u52a8\u753b\u3001\u5b9a\u65f6\u8df3\u8f6c\u5230 pages\/Index\u3002<\/p>\n<p>\u9875\u9762\u72b6\u6001\u53ea\u6709\u4e09\u4e2a&#xff1a;<\/p>\n<p>&#064;State private opacity_: number &#061; 0<br \/>\n&#064;State private scale_: number &#061; 0.85<br \/>\nprivate timerId: number &#061; -1 <\/p>\n<p>opacity_ \u548c scale_ \u63a7\u5236\u542f\u52a8\u9875\u6de1\u5165\u548c\u7f29\u653e&#xff0c;timerId \u7528\u4e8e\u4fdd\u5b58\u8df3\u8f6c\u5b9a\u65f6\u5668\u3002\u72b6\u6001\u6570\u91cf\u5f88\u5c11&#xff0c;\u8bf4\u660e\u8fd9\u4e2a\u9875\u9762\u6ca1\u6709\u627f\u62c5\u4e1a\u52a1\u804c\u8d23\u3002\u542f\u52a8\u9875\u53ea\u8d1f\u8d23\u7ed9\u7528\u6237\u4e00\u4e2a\u7a33\u5b9a\u7684\u89c6\u89c9\u8fc7\u6e21&#xff0c;\u907f\u514d App \u5165\u53e3\u76f4\u63a5\u8df3\u5230\u5185\u5bb9\u9875\u65f6\u51fa\u73b0\u95ea\u70c1\u6216\u51b7\u542f\u52a8\u7a81\u5140\u3002<\/p>\n<p>aboutToAppear() \u4e2d&#xff0c;\u9875\u9762\u5148\u6267\u884c&#xff1a;<\/p>\n<p>animateTo({ duration: 600, curve: Curve.EaseOut }, () &#061;&gt; {<br \/>\n  this.opacity_ &#061; 1<br \/>\n  this.scale_ &#061; 1<br \/>\n}) <\/p>\n<p>\u8fd9\u6bb5\u52a8\u753b\u8ba9 Logo\u3001\u5e94\u7528\u540d\u3001\u6807\u8bed\u3001\u7248\u672c\u53f7\u4ece\u900f\u660e\u548c\u8f83\u5c0f\u5c3a\u5bf8\u8fc7\u6e21\u5230\u6b63\u5e38\u5c55\u793a\u3002\u52a8\u753b\u65f6\u95f4 600ms&#xff0c;\u4e0d\u4f1a\u8fc7\u957f&#xff0c;\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u540e\u7eed 2 \u79d2\u8df3\u8f6c\u3002\u542f\u52a8\u9875\u52a8\u753b\u9002\u5408\u505a\u8f7b\u91cf\u89c6\u89c9\u53cd\u9988&#xff0c;\u4e0d\u9002\u5408\u5806\u53e0\u590d\u6742\u4e1a\u52a1\u52a0\u8f7d\u3002\u5982\u679c\u542f\u52a8\u9875\u52a8\u753b\u672c\u8eab\u592a\u91cd&#xff0c;\u53cd\u800c\u4f1a\u62d6\u6162\u9996\u5c4f\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u968f\u540e\u8bbe\u7f6e\u5b9a\u65f6\u8df3\u8f6c&#xff1a;<\/p>\n<p>this.timerId &#061; setTimeout(() &#061;&gt; {<br \/>\n  router.replaceUrl({ url: &#039;pages\/Index&#039; })<br \/>\n}, 2000) <\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f replaceUrl&#xff0c;\u4e0d\u662f pushUrl\u3002\u5bf9\u542f\u52a8\u9875\u6765\u8bf4&#xff0c;\u8fd9\u4e2a\u9009\u62e9\u5f88\u5173\u952e\u3002\u542f\u52a8\u9875\u5b8c\u6210\u540e\u4e0d\u5e94\u8be5\u7559\u5728\u8fd4\u56de\u6808\u91cc&#xff0c;\u5426\u5219\u7528\u6237\u4ece\u9996\u9875\u6309\u8fd4\u56de\u53ef\u80fd\u56de\u5230\u542f\u52a8\u9875&#xff0c;\u8fd9\u4f1a\u7834\u574f\u6b63\u5e38\u5bfc\u822a\u9884\u671f\u3002replaceUrl \u4f1a\u7528\u9996\u9875\u66ff\u6362\u5f53\u524d\u9875&#xff0c;\u8ba9\u542f\u52a8\u9875\u6210\u4e3a\u4e00\u6b21\u6027\u5165\u53e3\u3002<\/p>\n<p>aboutToDisappear() \u4e2d&#xff0c;\u5982\u679c timerId !&#061;&#061; -1&#xff0c;\u5c31\u8c03\u7528 clearTimeout(this.timerId)\u3002\u8fd9\u4e2a\u6e05\u7406\u52a8\u4f5c\u770b\u4f3c\u5c0f&#xff0c;\u4f46\u5b83\u662f\u542f\u52a8\u9875\u7a33\u5b9a\u6027\u7684\u5e95\u7ebf\u4e4b\u4e00\u3002\u5982\u679c\u7528\u6237\u6216\u7cfb\u7edf\u5728 2 \u79d2\u5185\u89e6\u53d1\u9875\u9762\u9500\u6bc1&#xff0c;\u800c timer \u6ca1\u6709\u6e05\u7406&#xff0c;\u540e\u7eed timer \u56de\u8c03\u4ecd\u53ef\u80fd\u5c1d\u8bd5\u8def\u7531\u8df3\u8f6c&#xff0c;\u9020\u6210\u4e0d\u53ef\u9884\u671f\u7684\u5bfc\u822a\u884c\u4e3a\u3002\u6e90\u7801\u5728\u9875\u9762\u6d88\u5931\u65f6\u6e05\u7406 timer&#xff0c;\u8bf4\u660e\u5b83\u6ca1\u6709\u628a\u542f\u52a8\u9875\u5f53\u6210\u6c38\u8fdc\u53ea\u4f1a\u5b8c\u6574\u6267\u884c\u7684\u9759\u6001\u9875\u9762\u3002<\/p>\n<p>UI \u5c42\u9762&#xff0c;SplashPage \u4f7f\u7528 Column \u5c45\u4e2d\u5e03\u5c40&#xff0c;\u80cc\u666f\u4e3a Colors.BACKGROUND&#xff0c;Logo \u4f7f\u7528\u5706\u89d2\u77e9\u5f62\u5bb9\u5668\u627f\u8f7d&#xff0c;\u5185\u90e8\u662f\u4e66\u5199\u7b26\u53f7&#xff0c;\u5e94\u7528\u540d\u4e3a\u300c\u7b14\u4e0b\u751f\u8f89\u300d&#xff0c;\u6807\u8bed\u4e3a\u300c\u8ba9\u6bcf\u4e00\u4e2a\u5b57\u90fd\u6709\u7075\u611f\u300d&#xff0c;\u7248\u672c\u53f7\u4e3a Version 1.0.0\u3002\u8fd9\u4e9b\u5185\u5bb9\u4e0e\u5e94\u7528\u5b9a\u4f4d\u4e00\u81f4&#xff0c;\u4e5f\u548c\u542f\u52a8\u94fe\u8def\u4e2d\u7684\u6d45\u8272\u6a21\u5f0f\u76f8\u5339\u914d\u3002<\/p>\n<h3>6. \u9500\u6bc1\u9636\u6bb5\u662f\u7a33\u5b9a\u6027\u7684\u53e6\u4e00\u534a<\/h3>\n<p><img decoding=\"async\" alt=\"\u542f\u52a8\u94fe\u8def\u804c\u8d23\u7ed3\u6784\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729191626-6a6a518a8856b.png\" \/><\/p>\n<p>\u542f\u52a8\u94fe\u8def\u4e0d\u80fd\u53ea\u770b\u521b\u5efa&#xff0c;\u8fd8\u8981\u770b\u9500\u6bc1\u3002EntryAbility \u4e2d\u6709\u4e24\u4e2a\u9500\u6bc1\u76f8\u5173\u65b9\u6cd5&#xff1a;onDestroy() \u548c onWindowStageDestroy()\u3002<\/p>\n<p>onDestroy() \u4e2d&#xff0c;\u6e90\u7801\u5148\u5199\u65e5\u5fd7&#xff0c;\u7136\u540e\u5224\u65ad&#xff1a;<\/p>\n<p>if (this.mainWindow &amp;&amp; this.avoidAreaCallback) {<br \/>\n  this.mainWindow.off(&#039;avoidAreaChange&#039;, this.avoidAreaCallback)<br \/>\n}<br \/>\nBreakpointSystem.unregister() <\/p>\n<p>\u8fd9\u91cc\u91ca\u653e\u4e86\u4e24\u4e2a\u542f\u52a8\u9636\u6bb5\u6ce8\u518c\u8fc7\u7684\u4e1c\u897f&#xff1a;\u7a97\u53e3\u907f\u8ba9\u533a\u76d1\u542c\u548c\u65ad\u70b9\u7cfb\u7edf\u3002\u4e0e onCreate \u4e2d\u7684 BreakpointSystem.register() \u5bf9\u5e94&#xff0c;onDestroy \u4e2d\u6709 unregister()\u3002\u4e0e onWindowStageCreate \u4e2d\u7684 mainWindow.on(&#039;avoidAreaChange&#039;, &#8230;) \u5bf9\u5e94&#xff0c;\u9500\u6bc1\u9636\u6bb5\u6709 off(&#039;avoidAreaChange&#039;, &#8230;)\u3002\u8fd9\u79cd\u6210\u5bf9\u51fa\u73b0\u7684\u6ce8\u518c\/\u6ce8\u9500&#xff0c;\u662f\u957f\u671f\u7a33\u5b9a\u8fd0\u884c\u7684\u57fa\u672c\u8981\u6c42\u3002<\/p>\n<p>onWindowStageDestroy() \u4e2d&#xff0c;\u4ee3\u7801\u518d\u6b21\u5904\u7406\u7a97\u53e3\u56de\u8c03&#xff1a;<\/p>\n<p>if (this.mainWindow &amp;&amp; this.avoidAreaCallback) {<br \/>\n  this.mainWindow.off(&#039;avoidAreaChange&#039;, this.avoidAreaCallback)<br \/>\n}<br \/>\nthis.mainWindow &#061; undefined<br \/>\nthis.avoidAreaCallback &#061; undefined <\/p>\n<p>\u4e3a\u4ec0\u4e48\u4e24\u4e2a\u9500\u6bc1\u65b9\u6cd5\u91cc\u90fd\u505a\u4e86\u56de\u8c03\u6ce8\u9500&#xff1f;\u4ece\u9632\u5fa1\u89d2\u5ea6\u770b&#xff0c;\u8fd9\u662f\u5728\u4e0d\u540c\u751f\u547d\u5468\u671f\u51fa\u53e3\u90fd\u4fdd\u8bc1\u7a97\u53e3\u76d1\u542c\u4e0d\u4f1a\u6b8b\u7559\u3002WindowStage \u9500\u6bc1\u548c Ability \u9500\u6bc1\u5e76\u4e0d\u662f\u540c\u4e00\u4e2a\u8bed\u4e49\u70b9&#xff0c;\u7a97\u53e3\u9500\u6bc1\u65f6\u6e05\u7406\u7a97\u53e3\u76f8\u5173\u6210\u5458\u66f4\u8d34\u8fd1\u8d44\u6e90\u5f52\u5c5e\u3002Ability \u9500\u6bc1\u65f6\u518d\u515c\u5e95\u6e05\u7406\u4e00\u6b21&#xff0c;\u4e5f\u80fd\u9632\u6b62\u67d0\u4e9b\u5f02\u5e38\u8def\u5f84\u9057\u6f0f\u3002<\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u4e2a\u5de5\u7a0b\u7ec6\u8282&#xff1a;\u5982\u679c\u540c\u4e00\u4e2a\u56de\u8c03\u88ab\u91cd\u590d off&#xff0c;\u5e73\u53f0 API \u901a\u5e38\u5e94\u80fd\u5bb9\u5fcd&#xff0c;\u4f46\u5de5\u7a0b\u4e0a\u4ecd\u5e94\u4fdd\u6301\u56de\u8c03\u5f15\u7528\u7a33\u5b9a\u3002\u6e90\u7801\u4f7f\u7528\u6210\u5458\u53d8\u91cf avoidAreaCallback \u4fdd\u5b58\u540c\u4e00\u4e2a\u51fd\u6570\u5f15\u7528&#xff0c;\u800c\u4e0d\u662f\u5728\u6ce8\u9500\u65f6\u4e34\u65f6\u521b\u5efa\u4e00\u4e2a\u65b0\u51fd\u6570&#xff0c;\u8fd9\u662f\u6b63\u786e\u505a\u6cd5\u3002\u4e8b\u4ef6\u6ce8\u9500\u5fc5\u987b\u62ff\u5230\u6ce8\u518c\u65f6\u540c\u4e00\u4e2a\u56de\u8c03\u5f15\u7528&#xff0c;\u5426\u5219\u5c31\u53ef\u80fd\u6ce8\u9500\u5931\u8d25\u3002<\/p>\n<p>SplashPage \u7684\u9500\u6bc1\u4e5f\u6709\u5bf9\u5e94\u6e05\u7406&#xff1a;aboutToDisappear \u6e05\u7406 timerId\u3002\u8fd9\u6837\u4ece Ability \u5230\u9875\u9762&#xff0c;\u4e24\u5c42\u90fd\u6709\u81ea\u5df1\u7684\u751f\u547d\u5468\u671f\u6e05\u7406\u52a8\u4f5c&#xff1a;Ability \u6e05\u7a97\u53e3\u76d1\u542c\u548c\u65ad\u70b9\u6ce8\u518c&#xff0c;\u9875\u9762\u6e05\u5b9a\u65f6\u8df3\u8f6c\u3002\u804c\u8d23\u6ca1\u6709\u6df7\u5728\u4e00\u8d77\u3002<\/p>\n<h3>7. \u5931\u8d25\u8def\u5f84\u6ca1\u6709\u88ab\u4f2a\u88c5\u6210\u6210\u529f<\/h3>\n<p>\u542f\u52a8\u94fe\u8def\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u662f\u5931\u8d25\u8def\u5f84\u3002\u5f88\u591a\u9879\u76ee\u53ea\u5199\u201c\u6210\u529f\u52a0\u8f7d\u9996\u9875\u201d\u7684 happy path&#xff0c;\u4e00\u65e6\u7a97\u53e3\u914d\u7f6e\u3001\u7cfb\u7edf\u680f\u8bbe\u7f6e\u3001\u907f\u8ba9\u533a\u8bfb\u53d6\u3001\u9875\u9762\u52a0\u8f7d\u51fa\u9519&#xff0c;\u53ea\u80fd\u770b\u5230\u767d\u5c4f\u6216\u65e0\u54cd\u5e94&#xff0c;\u7f3a\u5c11\u5b9a\u4f4d\u7ebf\u7d22\u3002<\/p>\n<p>\u8fd9\u4efd\u6e90\u7801\u5728\u51e0\u4e2a\u5173\u952e\u70b9\u4e0a\u505a\u4e86\u65e5\u5fd7\u548c\u964d\u7ea7\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u989c\u8272\u6a21\u5f0f\u8bbe\u7f6e\u5931\u8d25\u65f6\u8bb0\u5f55 warn&#xff0c;\u4e0d\u963b\u65ad\u540e\u7eed\u521d\u59cb\u5316\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u7a97\u53e3\u5168\u5c4f\u3001\u7cfb\u7edf\u680f\u3001\u5b89\u5168\u533a\u8bfb\u53d6\u3001\u76d1\u542c\u6ce8\u518c\u653e\u5728\u4e00\u4e2a try\/catch \u4e2d&#xff1b;\u5982\u679c\u5931\u8d25&#xff0c;\u5199\u5165 warn&#xff0c;\u5e76\u628a\u9876\u90e8\u548c\u5e95\u90e8\u907f\u8ba9\u533a\u9ad8\u5ea6\u90fd\u8bbe\u4e3a 0\u3002\u8fd9\u6837\u540e\u7eed\u9875\u9762\u81f3\u5c11\u80fd\u8bfb\u5230\u786e\u5b9a\u503c&#xff0c;\u800c\u4e0d\u662f\u8bfb\u5230\u672a\u521d\u59cb\u5316\u72b6\u6001\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;loadContent(&#039;pages\/SplashPage&#039;) \u7684\u56de\u8c03\u68c0\u67e5 err.code\u3002\u5982\u679c\u52a0\u8f7d\u5931\u8d25&#xff0c;\u5199\u5165\u9519\u8bef\u7801\u548c\u9519\u8bef\u4fe1\u606f&#xff1b;\u6210\u529f\u65f6\u5199\u6210\u529f\u65e5\u5fd7\u3002\u8fd9\u4e2a\u56de\u8c03\u5bf9\u6392\u67e5 main_pages.json \u8def\u7531\u914d\u7f6e\u3001\u9875\u9762\u8def\u5f84\u9519\u8bef\u3001\u8d44\u6e90\u7f3a\u5931\u3001\u7f16\u8bd1\u4ea7\u7269\u5f02\u5e38\u90fd\u5f88\u5173\u952e\u3002<\/p>\n<p>\u7b2c\u56db&#xff0c;\u9875\u9762\u5b9a\u65f6\u5668\u5728\u6d88\u5931\u65f6\u6e05\u7406&#xff0c;\u907f\u514d\u9875\u9762\u5df2\u7ecf\u79bb\u5f00\u4f46\u4ecd\u6267\u884c\u8df3\u8f6c\u3002<\/p>\n<p>\u8fd9\u4e9b\u5904\u7406\u90fd\u4e0d\u662f\u590d\u6742\u6846\u67b6&#xff0c;\u4f46\u5b83\u4eec\u5171\u540c\u6784\u6210\u4e86\u7a33\u5b9a\u542f\u52a8\u94fe\u8def\u7684\u57fa\u672c\u95ed\u73af&#xff1a;\u53ef\u964d\u7ea7\u3001\u53ef\u89c2\u6d4b\u3001\u53ef\u6e05\u7406\u3002<\/p>\n<h3>8. \u4ece\u6e90\u7801\u770b\u9996\u9875\u7a33\u5b9a\u6027\u7684\u8fb9\u754c<\/h3>\n<p>\u672c\u6587\u6807\u9898\u91cc\u63d0\u5230\u201c\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a\u201d&#xff0c;\u8fd9\u91cc\u7684\u201c\u7a33\u5b9a\u201d\u662f\u6709\u8fb9\u754c\u7684&#xff0c;\u4e0d\u662f\u6cdb\u6cdb\u800c\u8c08\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u7a97\u53e3\u7a33\u5b9a\u6307\u7684\u662f&#xff1a;\u4e3b\u7a97\u53e3\u5728 onWindowStageCreate \u4e2d\u83b7\u53d6&#xff0c;\u7a97\u53e3\u5168\u5c4f\u548c\u7cfb\u7edf\u680f\u914d\u7f6e\u5931\u8d25\u4e0d\u4f1a\u963b\u65ad\u9875\u9762\u52a0\u8f7d&#xff0c;\u5b89\u5168\u533a\u8bfb\u53d6\u5931\u8d25\u4f1a\u56de\u9000\u5230 0&#xff0c;\u5e76\u4e14\u5b89\u5168\u533a\u53d8\u5316\u4f1a\u901a\u8fc7\u540c\u4e00\u4e2a\u56de\u8c03\u5237\u65b0 AppStorage\u3002\u6e90\u7801\u6ca1\u6709\u505a\u590d\u6742\u7a97\u53e3\u591a\u5b9e\u4f8b\u7ba1\u7406&#xff0c;\u4e5f\u6ca1\u6709\u505a\u6c89\u6d78\u5f0f\u4e3b\u9898\u5207\u6362&#xff0c;\u53ea\u662f\u4fdd\u8bc1\u5f53\u524d\u4e3b\u7a97\u53e3\u7684\u7cfb\u7edf\u533a\u57df\u6570\u636e\u80fd\u88ab\u9875\u9762\u7a33\u5b9a\u6d88\u8d39\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u8def\u7531\u7a33\u5b9a\u6307\u7684\u662f&#xff1a;\u542f\u52a8\u9875\u901a\u8fc7 windowStage.loadContent(&#039;pages\/SplashPage&#039;) \u4f5c\u4e3a\u9996\u4e2a\u5185\u5bb9\u9875&#xff0c;\u542f\u52a8\u9875\u518d\u7528 router.replaceUrl({ url: &#039;pages\/Index&#039; }) \u8fdb\u5165\u9996\u9875\u3002\u542f\u52a8\u9875\u4e0d\u4f1a\u7559\u5728\u8fd4\u56de\u6808\u4e2d\u3002\u6e90\u7801\u6ca1\u6709\u505a\u767b\u5f55\u5206\u6d41\u3001\u5f15\u5bfc\u9875\u5206\u6d41\u3001\u8fdc\u7a0b\u7070\u5ea6\u5206\u6d41\u6216 A\/B \u6d4b\u8bd5\u5206\u6d41&#xff0c;\u56e0\u6b64\u4e0d\u80fd\u628a\u5b83\u63cf\u8ff0\u6210\u201c\u667a\u80fd\u542f\u52a8\u8def\u7531\u7cfb\u7edf\u201d\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u672c\u5730\u72b6\u6001\u7a33\u5b9a\u6307\u7684\u662f&#xff1a;\u542f\u52a8\u9636\u6bb5\u521b\u5efa currentTabIndex\u3001favoriteTabIndex\u3001topAvoidAreaHeightPx\u3001navigationIndicatorHeightPx \u7684\u9ed8\u8ba4\u503c\u3002\u9875\u9762\u8bfb\u8fd9\u4e9b\u503c\u65f6&#xff0c;\u4e0d\u9700\u8981\u9762\u5bf9 undefined\u3002\u6e90\u7801\u6ca1\u6709\u628a\u590d\u6742\u4e1a\u52a1\u6570\u636e\u585e\u8fdb AppStorage&#xff0c;\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u4ecd\u7531 UserDataManager \u627f\u62c5\u3002<\/p>\n<p>\u7b2c\u56db&#xff0c;\u9002\u914d\u7a33\u5b9a\u6307\u7684\u662f&#xff1a;BreakpointSystem.register() \u5728 Ability \u521b\u5efa\u65f6\u6ce8\u518c&#xff0c;\u7a97\u53e3\u907f\u8ba9\u533a\u53d8\u5316\u7531\u5165\u53e3\u7edf\u4e00\u76d1\u542c\u3002\u6e90\u7801\u80fd\u652f\u6491\u201c\u4e3a\u591a\u8bbe\u5907\u5e03\u5c40\u63d0\u4f9b\u542f\u52a8\u671f\u57fa\u7840\u72b6\u6001\u201d&#xff0c;\u4f46\u4e0d\u80fd\u6269\u5c55\u6210\u5df2\u7ecf\u5b8c\u6574\u5b9e\u73b0\u6240\u6709\u6298\u53e0\u5c4f\u3001\u5e73\u677f\u3001\u9e3f\u8499\u7535\u8111\u7aef\u7684\u4e13\u95e8\u5e03\u5c40\u3002\u6587\u7ae0\u5fc5\u987b\u4fdd\u6301\u8fd9\u4e2a\u8fb9\u754c\u3002<\/p>\n<h3>9. \u53ef\u590d\u7528\u7684\u542f\u52a8\u94fe\u8def\u8bbe\u8ba1\u539f\u5219<\/h3>\n<p>\u4ece\u8fd9\u4efd\u6e90\u7801\u53ef\u4ee5\u603b\u7ed3\u51fa\u4e00\u5957\u9002\u7528\u4e8e HarmonyOS ArkTS \u5e94\u7528\u7684\u542f\u52a8\u94fe\u8def\u539f\u5219\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u628a\u5e94\u7528\u7ea7\u521d\u59cb\u5316\u653e\u5728 onCreate\u3002\u672c\u5730\u6570\u636e\u670d\u52a1\u3001\u5168\u5c40\u8f7b\u91cf\u72b6\u6001\u9ed8\u8ba4\u503c\u3001\u65ad\u70b9\u7cfb\u7edf\u6ce8\u518c\u7b49&#xff0c;\u4e0d\u5e94\u8be5\u6563\u843d\u5728\u4e1a\u52a1\u9996\u9875\u3002onCreate \u662f Ability \u521b\u5efa\u65f6\u7684\u5408\u9002\u5165\u53e3&#xff0c;\u4f46\u4e0d\u8981\u5728\u8fd9\u91cc\u64cd\u4f5c\u5c1a\u672a\u51c6\u5907\u597d\u7684\u7a97\u53e3\u5bf9\u8c61\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u628a\u7a97\u53e3\u7ea7\u521d\u59cb\u5316\u653e\u5728 onWindowStageCreate\u3002\u4e3b\u7a97\u53e3\u3001\u7cfb\u7edf\u680f\u3001\u5168\u5c4f\u5e03\u5c40\u3001\u5b89\u5168\u533a\u8bfb\u53d6\u3001\u7a97\u53e3\u4e8b\u4ef6\u76d1\u542c&#xff0c;\u90fd\u4f9d\u8d56 WindowStage \u6216 Window\u3002\u8fd9\u4e9b\u903b\u8f91\u653e\u5230\u7a97\u53e3\u521b\u5efa\u9636\u6bb5\u66f4\u81ea\u7136&#xff0c;\u4e5f\u66f4\u5bb9\u6613\u5728\u7a97\u53e3\u9500\u6bc1\u9636\u6bb5\u6e05\u7406\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u628a\u542f\u52a8\u9875\u505a\u8584\u3002\u542f\u52a8\u9875\u53ef\u4ee5\u5c55\u793a\u54c1\u724c\u3001\u8fc7\u6e21\u52a8\u753b\u548c\u786e\u5b9a\u6027\u8df3\u8f6c&#xff0c;\u4f46\u4e0d\u8981\u627f\u62c5\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u3001\u6743\u9650\u7533\u8bf7\u3001\u8fdc\u7a0b\u914d\u7f6e\u62c9\u53d6\u548c\u590d\u6742\u4e1a\u52a1\u5224\u65ad\u3002\u8584\u542f\u52a8\u9875\u66f4\u5bb9\u6613\u7a33\u5b9a&#xff0c;\u4e5f\u66f4\u5bb9\u6613\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<p>\u7b2c\u56db&#xff0c;\u8de8\u9875\u9762\u73af\u5883\u72b6\u6001\u53ef\u4ee5\u7528 AppStorage&#xff0c;\u4f46\u8981\u63a7\u5236\u7c92\u5ea6\u3002\u9876\u90e8\u907f\u8ba9\u533a\u9ad8\u5ea6\u3001\u5e95\u90e8\u5bfc\u822a\u6307\u793a\u5668\u9ad8\u5ea6\u3001\u5f53\u524d Tab \u9ed8\u8ba4\u503c\u662f\u8f7b\u91cf\u72b6\u6001&#xff1b;\u4e1a\u52a1\u6570\u636e\u3001\u7528\u6237\u5185\u5bb9\u3001\u5386\u53f2\u8bb0\u5f55\u3001\u6536\u85cf\u5217\u8868\u4e0d\u5e94\u8be5\u76f4\u63a5\u585e\u8fdb AppStorage\u3002<\/p>\n<p>\u7b2c\u4e94&#xff0c;\u6240\u6709\u6ce8\u518c\u90fd\u8981\u6709\u6ce8\u9500\u3002BreakpointSystem.register() \u5bf9\u5e94 unregister()&#xff1b;mainWindow.on(&#039;avoidAreaChange&#039;) \u5bf9\u5e94 off(&#039;avoidAreaChange&#039;)&#xff1b;setTimeout \u5bf9\u5e94 clearTimeout\u3002\u542f\u52a8\u94fe\u8def\u4e0d\u662f\u53ea\u8d1f\u8d23\u201c\u8d77\u6765\u201d&#xff0c;\u4e5f\u8d1f\u8d23\u201c\u5e72\u51c0\u5730\u9000\u573a\u201d\u3002<\/p>\n<p>\u7b2c\u516d&#xff0c;\u5931\u8d25\u8def\u5f84\u8981\u5199\u65e5\u5fd7\u5e76\u7ed9\u786e\u5b9a\u56de\u9000\u503c\u3002\u7a97\u53e3\u914d\u7f6e\u5931\u8d25\u65f6\u56de\u9000\u5230\u907f\u8ba9\u533a 0&#xff0c;\u6bd4\u8ba9\u9875\u9762\u8bfb\u4e0d\u5230\u503c\u66f4\u53ef\u63a7&#xff1b;\u9875\u9762\u52a0\u8f7d\u5931\u8d25\u65f6\u8bb0\u5f55\u9519\u8bef\u7801&#xff0c;\u6bd4\u9759\u9ed8\u767d\u5c4f\u66f4\u5bb9\u6613\u6392\u67e5\u3002<\/p>\n<h3>10. \u5982\u679c\u8981\u7ee7\u7eed\u589e\u5f3a&#xff0c;\u5e94\u5148\u8865\u54ea\u4e9b\u70b9<\/h3>\n<p>\u57fa\u4e8e\u5f53\u524d\u6e90\u7801&#xff0c;\u540e\u7eed\u5982\u679c\u7ee7\u7eed\u589e\u5f3a\u542f\u52a8\u94fe\u8def&#xff0c;\u6211\u4f1a\u4f18\u5148\u8865\u56db\u7c7b\u9a8c\u8bc1&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u5f15\u5165\u590d\u6742\u542f\u52a8\u6846\u67b6\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u8865\u5145\u542f\u52a8\u94fe\u8def\u7684\u771f\u5b9e\u8bbe\u5907 smoke test\u3002\u81f3\u5c11\u8986\u76d6\u5b89\u88c5\u3001\u542f\u52a8\u3001\u542f\u52a8\u9875\u5c55\u793a\u30012 \u79d2\u540e\u8fdb\u5165 Index\u3001\u8fd4\u56de\u952e\u884c\u4e3a\u3001\u9000\u51fa\u540e\u91cd\u65b0\u542f\u52a8\u3002\u56e0\u4e3a replaceUrl \u7684\u6548\u679c\u6700\u7ec8\u8981\u5728\u771f\u5b9e\u8def\u7531\u6808\u4e0a\u9a8c\u8bc1\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u8865\u5145\u5b89\u5168\u533a\u89c2\u5bdf\u9a8c\u8bc1\u3002\u5207\u6362\u624b\u52bf\u5bfc\u822a\u3001\u6a2a\u7ad6\u5c4f\u3001\u5c0f\u7a97\u6216\u5e73\u677f\u7a97\u53e3\u5c3a\u5bf8\u53d8\u5316\u65f6&#xff0c;\u89c2\u5bdf topAvoidAreaHeightPx \u548c navigationIndicatorHeightPx \u662f\u5426\u80fd\u66f4\u65b0&#xff0c;\u5e95\u90e8\u5bfc\u822a\u662f\u5426\u4fdd\u7559\u8db3\u591f\u7a7a\u95f4\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u8865\u5145\u6df1\u6d45\u8272\u7b56\u7565\u8bf4\u660e\u3002\u5f53\u524d\u4ee3\u7801\u663e\u5f0f\u8bbe\u7f6e\u6d45\u8272\u6a21\u5f0f&#xff0c;\u8fd9\u4e0e\u542f\u52a8\u9875\u6d45\u8272\u89c6\u89c9\u4e00\u81f4\u3002\u82e5\u672a\u6765\u8981\u652f\u6301\u7cfb\u7edf\u6df1\u8272\u6a21\u5f0f&#xff0c;\u9700\u8981\u8865\u6697\u8272\u8d44\u6e90\u3001\u7cfb\u7edf\u680f\u5185\u5bb9\u8272\u5207\u6362\u3001Logo \u5bf9\u6bd4\u5ea6\u548c\u9996\u9875\u6240\u6709\u6587\u672c\/\u80cc\u666f\u7ec4\u5408\u68c0\u67e5\u3002<\/p>\n<p>\u7b2c\u56db&#xff0c;\u8865\u5145 loadContent \u5931\u8d25\u540e\u7684\u7528\u6237\u4fa7\u515c\u5e95\u3002\u5f53\u524d\u6e90\u7801\u5199\u4e86\u9519\u8bef\u65e5\u5fd7&#xff0c;\u4f46\u5982\u679c\u9996\u5c4f\u52a0\u8f7d\u5931\u8d25&#xff0c;\u7528\u6237\u770b\u5230\u7684\u4ecd\u53ef\u80fd\u662f\u5f02\u5e38\u72b6\u6001\u3002\u5de5\u7a0b\u4e0a\u53ef\u4ee5\u8003\u8651\u5728\u9519\u8bef\u8def\u5f84\u52a0\u8f7d\u4e00\u4e2a\u6781\u7b80\u9519\u8bef\u9875&#xff0c;\u6216\u8005\u81f3\u5c11\u8ba9\u65e5\u5fd7\u80fd\u88ab\u6d4b\u8bd5\u6d41\u7a0b\u6355\u83b7\u3002<\/p>\n<p>\u8fd9\u4e9b\u589e\u5f3a\u90fd\u5fc5\u987b\u57fa\u4e8e\u771f\u5b9e\u4ee3\u7801\u6539\u52a8\u548c\u6d4b\u8bd5\u7ed3\u679c&#xff0c;\u4e0d\u80fd\u5728\u6280\u672f\u6587\u7ae0\u91cc\u63d0\u524d\u63cf\u8ff0\u6210\u5df2\u7ecf\u5b9e\u73b0\u7684\u80fd\u529b\u3002<\/p>\n<h3>11. \u5c0f\u7ed3<\/h3>\n<p>\u300c\u7b14\u4e0b\u751f\u8f89\u300d\u8fd9\u6761\u542f\u52a8\u94fe\u8def\u7684\u6838\u5fc3&#xff0c;\u4e0d\u662f\u70ab\u6280&#xff0c;\u800c\u662f\u628a HarmonyOS Stage \u6a21\u578b\u4e2d\u7684\u51e0\u4e2a\u5173\u952e\u8fb9\u754c\u653e\u5bf9&#xff1a;onCreate \u505a\u5e94\u7528\u7ea7\u521d\u59cb\u5316&#xff0c;onWindowStageCreate \u505a\u7a97\u53e3\u7ea7\u521d\u59cb\u5316\u548c\u9996\u5c4f\u52a0\u8f7d&#xff0c;SplashPage \u505a\u8f7b\u91cf\u542f\u52a8\u5c55\u793a\u548c replaceUrl \u8df3\u8f6c&#xff0c;\u9500\u6bc1\u9636\u6bb5\u5206\u522b\u6e05\u7406\u7a97\u53e3\u76d1\u542c\u3001\u65ad\u70b9\u6ce8\u518c\u548c\u9875\u9762\u5b9a\u65f6\u5668\u3002<\/p>\n<p>\u4ece\u53ef\u590d\u6838\u6e90\u7801\u770b&#xff0c;\u5b83\u5df2\u7ecf\u5b9e\u73b0\u4e86\u6d45\u8272\u6a21\u5f0f\u7ea6\u675f\u3001\u672c\u5730\u6570\u636e\u7ba1\u7406\u5668\u521d\u59cb\u5316\u3001AppStorage \u9ed8\u8ba4\u503c\u3001\u65ad\u70b9\u7cfb\u7edf\u6ce8\u518c\u3001\u4e3b\u7a97\u53e3\u83b7\u53d6\u3001\u5168\u5c4f\u5e03\u5c40\u5c1d\u8bd5\u3001\u7cfb\u7edf\u680f\u5185\u5bb9\u8272\u8bbe\u7f6e\u3001\u5b89\u5168\u533a\u9ad8\u5ea6\u8bfb\u53d6\u3001avoidAreaChange \u76d1\u542c\u3001\u542f\u52a8\u9875\u52a0\u8f7d\u3001\u542f\u52a8\u9875\u52a8\u753b\u30012 \u79d2\u540e\u66ff\u6362\u8def\u7531\u5230 Index&#xff0c;\u4ee5\u53ca\u5bf9\u5e94\u7684\u56de\u8c03\u548c timer \u6e05\u7406\u3002\u5b83\u6ca1\u6709\u5b9e\u73b0\u8fdc\u7a0b\u542f\u52a8\u914d\u7f6e\u3001\u5e7f\u544a\u3001\u8d26\u53f7\u3001\u4e91\u540c\u6b65\u3001\u6743\u9650\u5f15\u5bfc\u6216\u9690\u79c1\u5f39\u7a97&#xff0c;\u6240\u4ee5\u672c\u6587\u4e5f\u4e0d\u628a\u8fd9\u4e9b\u4e0d\u5b58\u5728\u7684\u80fd\u529b\u5199\u8fdb\u53bb\u3002<\/p>\n<p>\u5bf9 HarmonyOS 5.0&#043; ArkTS \u5e94\u7528\u6765\u8bf4&#xff0c;\u4e00\u4e2a\u7a33\u5b9a\u542f\u52a8\u94fe\u8def\u7684\u6807\u51c6\u4e0d\u662f\u201c\u542f\u52a8\u9636\u6bb5\u505a\u5f88\u591a\u4e8b\u201d&#xff0c;\u800c\u662f\u201c\u6bcf\u4ef6\u4e8b\u90fd\u653e\u5728\u6b63\u786e\u751f\u547d\u5468\u671f\u91cc&#xff0c;\u5931\u8d25\u65f6\u53ef\u964d\u7ea7&#xff0c;\u9500\u6bc1\u65f6\u53ef\u6e05\u7406&#xff0c;\u9875\u9762\u62ff\u5230\u7684\u662f\u786e\u5b9a\u72b6\u6001\u201d\u3002\u8fd9\u6b63\u662f\u8fd9\u6bb5 com.jiaweikang.one17 \u6e90\u7801\u6700\u503c\u5f97\u590d\u76d8\u7684\u90e8\u5206\u3002<\/p>\n<p>&#8212;<\/p>\n<p>\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210&#xff0c;\u5df2\u57fa\u4e8e\u771f\u5b9e\u6e90\u7801\u8fdb\u884c\u4eba\u5de5\u6838\u9a8c\u4e0e\u8fb9\u754c\u4fee\u6b63\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u57fa\u4e8e\u300c\u7b14\u4e0b\u751f\u8f89\u300dHarmonyOS 5.0 ArkTS \u5de5\u7a0b\u6e90\u7801\u590d\u76d8&#xff0c;\u6838\u5fc3\u6587\u4ef6\u4e3a entry\/src\/main\/ets\/entryability\/EntryAbility.ets \u4e0e entry\/src\/main\/ets\/pages\/SplashPage.ets\u3002\u552f\u4e00\u590d\u6838\u6807\u8bb0&#xff1a;com.jiaweikang.one17\u3002\u672c\u6587\u53ea\u8ba8\u8bba\u6e90\u7801\u4e2d\u771f\u5b9e\u5b58\u5728\u7684\u542f\u52a8\u94fe\u8def\u3001\u7a97\u53e3\u5b89\u5168\u533a\u3001\u65ad\u70b9\u6ce8\u518c\u3001\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u548c\u9996\u5c4f\u8def\u7531&#xff0c;\u4e0d\u6269\u5c55\u4e3a\u8fdc\u7a0b\u542f\u52a8\u914d\u7f6e\u3001\u8d26\u53f7\u4f53\u7cfb<\/p>\n","protected":false},"author":2,"featured_media":87221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9870,9869,9871,4362,280],"topic":[],"class_list":["post-87224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-entryability","tag-9869","tag-9871","tag-arkts","tag-harmonyos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \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\/87224.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u57fa\u4e8e\u300c\u7b14\u4e0b\u751f\u8f89\u300dHarmonyOS 5.0 ArkTS \u5de5\u7a0b\u6e90\u7801\u590d\u76d8&#xff0c;\u6838\u5fc3\u6587\u4ef6\u4e3a entry\/src\/main\/ets\/entryability\/EntryAbility.ets \u4e0e entry\/src\/main\/ets\/pages\/SplashPage.ets\u3002\u552f\u4e00\u590d\u6838\u6807\u8bb0&#xff1a;com.jiaweikang.one17\u3002\u672c\u6587\u53ea\u8ba8\u8bba\u6e90\u7801\u4e2d\u771f\u5b9e\u5b58\u5728\u7684\u542f\u52a8\u94fe\u8def\u3001\u7a97\u53e3\u5b89\u5168\u533a\u3001\u65ad\u70b9\u6ce8\u518c\u3001\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u548c\u9996\u5c4f\u8def\u7531&#xff0c;\u4e0d\u6269\u5c55\u4e3a\u8fdc\u7a0b\u542f\u52a8\u914d\u7f6e\u3001\u8d26\u53f7\u4f53\u7cfb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87224.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-29T19:16:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729191625-6a6a5189217e0.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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87224.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87224.html\",\"name\":\"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-29T19:16:28+00:00\",\"dateModified\":\"2026-07-29T19:16:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87224.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87224.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87224.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a\"}]},{\"@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":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \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\/87224.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u57fa\u4e8e\u300c\u7b14\u4e0b\u751f\u8f89\u300dHarmonyOS 5.0 ArkTS \u5de5\u7a0b\u6e90\u7801\u590d\u76d8&#xff0c;\u6838\u5fc3\u6587\u4ef6\u4e3a entry\/src\/main\/ets\/entryability\/EntryAbility.ets \u4e0e entry\/src\/main\/ets\/pages\/SplashPage.ets\u3002\u552f\u4e00\u590d\u6838\u6807\u8bb0&#xff1a;com.jiaweikang.one17\u3002\u672c\u6587\u53ea\u8ba8\u8bba\u6e90\u7801\u4e2d\u771f\u5b9e\u5b58\u5728\u7684\u542f\u52a8\u94fe\u8def\u3001\u7a97\u53e3\u5b89\u5168\u533a\u3001\u65ad\u70b9\u6ce8\u518c\u3001\u672c\u5730\u6570\u636e\u521d\u59cb\u5316\u548c\u9996\u5c4f\u8def\u7531&#xff0c;\u4e0d\u6269\u5c55\u4e3a\u8fdc\u7a0b\u542f\u52a8\u914d\u7f6e\u3001\u8d26\u53f7\u4f53\u7cfb","og_url":"https:\/\/www.wsisp.com\/helps\/87224.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-29T19:16:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729191625-6a6a5189217e0.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/87224.html","url":"https:\/\/www.wsisp.com\/helps\/87224.html","name":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-29T19:16:28+00:00","dateModified":"2026-07-29T19:16:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87224.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87224.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87224.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c13\u3011HarmonyOS ArkTS \u5e94\u7528\u542f\u52a8\u94fe\u8def\u5b9e\u6218\uff1a\u4ece EntryAbility \u5230\u9996\u5c4f\u52a0\u8f7d\u4fdd\u6301\u7a97\u53e3\u4e0e\u8def\u7531\u7a33\u5b9a"}]},{"@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\/87224","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=87224"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/87221"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87224"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}