{"id":87863,"date":"2026-07-31T01:24:32","date_gmt":"2026-07-30T17:24:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87863.html"},"modified":"2026-07-31T01:24:32","modified_gmt":"2026-07-30T17:24:32","slug":"%e3%80%90%e7%ac%94%e4%b8%8b%e7%94%9f%e8%be%89%ef%bd%9c14%e3%80%91harmonyos-arkts-%e4%b8%bb%e5%af%bc%e8%88%aa%e5%ae%9e%e6%88%98%ef%bc%9a%e7%bb%9f%e4%b8%80%e9%a1%b5%e9%9d%a2%e5%85%a5%e5%8f%a3%e3%80%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87863.html","title":{"rendered":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u4e3b\u5bfc\u822a\u5c01\u9762\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730172429-6a6b88cd7087f.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;\u4e3b\u8981\u590d\u6838 entry\/src\/main\/ets\/pages\/Index.ets\u3001entry\/src\/main\/ets\/views\/HomePage.ets\u3001entry\/src\/main\/resources\/base\/profile\/main_pages.json&#xff0c;\u5e76\u7ed3\u5408 BankDetailPage.ets\u3001PracticePage.ets\u3001SearchPage.ets \u4e2d\u7684\u53c2\u6570\u8bfb\u53d6\u65b9\u5f0f\u8bf4\u660e\u5bfc\u822a\u8fb9\u754c\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\u4e3b\u5bfc\u822a\u3001Tab \u72b6\u6001\u3001\u4e8c\u7ea7\u9875\u9762\u8def\u7531\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u515c\u5e95&#xff0c;\u4e0d\u6269\u5c55\u6210\u8d26\u53f7\u4f53\u7cfb\u3001\u4e91\u7aef\u8def\u7531\u3001\u8fdc\u7a0b\u914d\u7f6e\u6216\u6743\u9650\u5206\u6d41\u3002<\/p>\n<h3>1. \u4e3b\u5bfc\u822a\u771f\u6b63\u8981\u89e3\u51b3\u7684\u95ee\u9898<\/h3>\n<p>\u5199\u4f5c\u5b66\u4e60\u7c7b\u5e94\u7528\u7684\u9996\u9875\u901a\u5e38\u4e0d\u53ea\u6709\u4e00\u4e2a\u5165\u53e3\u3002\u7528\u6237\u4f1a\u4ece\u9996\u9875\u8fdb\u5165\u9898\u5e93&#xff0c;\u4ece\u9898\u5e93\u8fdb\u5165\u7ec3\u4e60&#xff0c;\u4ece\u6536\u85cf\u8fdb\u5165\u9519\u9898&#xff0c;\u4ece\u6211\u7684\u9875\u9762\u8fdb\u5165\u8bbe\u7f6e\u6216\u5b66\u4e60\u7edf\u8ba1\u3002\u5982\u679c\u8fd9\u4e9b\u5165\u53e3\u90fd\u76f4\u63a5\u6563\u843d\u5728\u5404\u4e2a\u7ec4\u4ef6\u91cc&#xff0c;\u77ed\u671f\u80fd\u8dd1&#xff0c;\u957f\u671f\u4f1a\u51fa\u73b0\u4e09\u4e2a\u95ee\u9898&#xff1a;\u4e00\u7ea7\u9875\u9762\u548c\u4e8c\u7ea7\u9875\u9762\u8fb9\u754c\u4e0d\u6e05&#xff0c;\u8fd4\u56de\u884c\u4e3a\u4e0d\u53ef\u9884\u6d4b&#xff0c;\u8def\u7531\u53c2\u6570\u7f3a\u5931\u65f6\u9875\u9762\u5bb9\u6613\u7a7a\u767d\u3002<\/p>\n<p>\u300c\u7b14\u4e0b\u751f\u8f89\u300d\u7684\u4e3b\u5bfc\u822a\u65b9\u6848\u6ca1\u6709\u5f15\u5165\u590d\u6742\u5bfc\u822a\u6846\u67b6&#xff0c;\u800c\u662f\u7528\u4e00\u4e2a Index \u9875\u9762\u627f\u63a5\u4e94\u4e2a\u4e00\u7ea7 Tab&#xff1a;HomePage\u3001BankListPage\u3001ExamTab\u3001FavoritePage\u3001MinePage\u3002\u4e00\u7ea7\u533a\u57df\u901a\u8fc7 &#064;StorageLink(&#039;currentTabIndex&#039;) \u5207\u6362&#xff0c;\u4e0d\u628a\u6bcf\u4e2a Tab \u90fd\u538b\u5165\u8def\u7531\u6808&#xff1b;\u641c\u7d22\u3001\u5206\u7c7b\u3001\u9898\u5e93\u8be6\u60c5\u3001\u7ec3\u4e60\u3001\u8bbe\u7f6e\u3001\u5b66\u4e60\u7edf\u8ba1\u7b49\u4e8c\u7ea7\u9875\u9762\u518d\u7528 router.pushUrl \u8fdb\u5165\u3002\u542f\u52a8\u9875\u6b64\u524d\u4f7f\u7528 router.replaceUrl({ url: &#039;pages\/Index&#039; })&#xff0c;\u56e0\u6b64\u7528\u6237\u8fdb\u5165\u9996\u9875\u540e\u8fd4\u56de\u4e0d\u4f1a\u56de\u5230\u542f\u52a8\u9875\u3002<\/p>\n<p>\u8fd9\u5957\u8bbe\u8ba1\u7684\u4ef7\u503c\u5728\u4e8e\u7b80\u5355\u53ef\u63a7\u3002\u4e00\u7ea7\u5bfc\u822a\u662f\u5e94\u7528\u5185\u90e8\u72b6\u6001&#xff0c;\u4e8c\u7ea7\u9875\u9762\u662f\u7cfb\u7edf\u8def\u7531\u6808\u3002Tab \u5207\u6362\u4e0d\u4f1a\u6c61\u67d3\u8fd4\u56de\u6808&#xff0c;\u8be6\u60c5\u9875\u548c\u8bbe\u7f6e\u9875\u4fdd\u7559\u6b63\u5e38\u8fd4\u56de\u8def\u5f84&#xff0c;\u53c2\u6570\u9875\u5728 aboutToAppear \u4e2d\u8bfb\u53d6 router.getParams() \u5e76\u8bbe\u7f6e\u9ed8\u8ba4\u503c\u6216\u56de\u9000\u6570\u636e\u3002\u5bf9 HarmonyOS 5.0&#043; ArkTS \u9879\u76ee\u6765\u8bf4&#xff0c;\u8fd9\u6bd4\u201c\u6240\u6709\u8df3\u8f6c\u90fd push\u201d\u66f4\u9002\u5408\u6709\u56fa\u5b9a\u5e95\u90e8\u5bfc\u822a\u7684\u5e94\u7528\u3002<\/p>\n<p>\u672c\u6587\u4f1a\u56f4\u7ed5\u56db\u4e2a\u6e90\u7801\u4e8b\u5b9e\u5c55\u5f00&#xff1a;main_pages.json \u53ea\u58f0\u660e\u53ef\u88ab\u7cfb\u7edf\u52a0\u8f7d\u7684\u9875\u9762&#xff1b;Index.ets \u7edf\u4e00\u7ec4\u5408\u4e94\u4e2a\u4e00\u7ea7 Tab&#xff1b;HomePage.ets \u65e2\u80fd\u6539 currentTabIndex&#xff0c;\u4e5f\u80fd pushUrl \u5230\u4e8c\u7ea7\u9875&#xff1b;\u8be6\u60c5\u3001\u7ec3\u4e60\u3001\u641c\u7d22\u9875\u8bfb\u53d6 params \u65f6\u90fd\u5b58\u5728\u6761\u4ef6\u5224\u65ad\u6216\u515c\u5e95\u903b\u8f91\u3002\u8fd9\u91cc\u4e0d\u58f0\u79f0\u6e90\u7801\u5df2\u7ecf\u5c01\u88c5\u4e86\u72ec\u7acb NavigationService&#xff0c;\u4e5f\u4e0d\u628a\u666e\u901a\u8def\u7531\u5199\u6210\u4e0d\u5b58\u5728\u7684\u8de8\u8bbe\u5907\u534f\u540c\u80fd\u529b\u3002<\/p>\n<h3>2. main_pages.json \u662f\u8def\u7531\u6e05\u5355&#xff0c;\u4e0d\u662f\u4e1a\u52a1\u5bfc\u822a<\/h3>\n<p>main_pages.json \u4e2d\u58f0\u660e\u4e86\u5e94\u7528\u53ef\u52a0\u8f7d\u9875\u9762&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;src&#034;: [<br \/>\n    &#034;pages\/SplashPage&#034;,<br \/>\n    &#034;pages\/Index&#034;,<br \/>\n    &#034;pages\/BankDetailPage&#034;,<br \/>\n    &#034;pages\/SichuanBankPage&#034;,<br \/>\n    &#034;pages\/YueBankPage&#034;,<br \/>\n    &#034;pages\/NortheastBankPage&#034;,<br \/>\n    &#034;pages\/ShanghaiBankPage&#034;,<br \/>\n    &#034;pages\/MinnanBankPage&#034;,<br \/>\n    &#034;pages\/HakkaBankPage&#034;,<br \/>\n    &#034;pages\/PracticePage&#034;,<br \/>\n    &#034;pages\/ExamResultPage&#034;,<br \/>\n    &#034;pages\/SearchPage&#034;,<br \/>\n    &#034;pages\/CategoryPage&#034;,<br \/>\n    &#034;pages\/LearningStatsPage&#034;,<br \/>\n    &#034;pages\/SettingsPage&#034;<br \/>\n  ]<br \/>\n}<\/p>\n<p>\u8fd9\u4efd\u6e05\u5355\u89e3\u51b3\u7684\u662f\u9875\u9762\u53ef\u88ab\u6846\u67b6\u8bc6\u522b\u548c\u52a0\u8f7d\u7684\u95ee\u9898&#xff0c;\u4e0d\u8d1f\u8d23\u51b3\u5b9a\u7528\u6237\u4ece\u54ea\u91cc\u8fdb\u5165\u54ea\u91cc\u3002\u771f\u6b63\u7684\u5bfc\u822a\u51b3\u7b56\u4ecd\u5728 Index\u3001HomePage\u3001\u5404\u8be6\u60c5\u9875\u548c\u64cd\u4f5c\u7ec4\u4ef6\u91cc\u5b8c\u6210\u3002\u628a\u8fd9\u4e24\u5c42\u5206\u6e05\u5f88\u91cd\u8981&#xff1a;main_pages.json \u7f3a\u9875\u4f1a\u5bfc\u81f4 router.pushUrl \u6216 loadContent \u5931\u8d25&#xff1b;\u4f46\u9875\u9762\u5728\u6e05\u5355\u91cc&#xff0c;\u5e76\u4e0d\u4ee3\u8868\u5b83\u5c31\u5e94\u8be5\u51fa\u73b0\u5728\u5e95\u90e8 Tab \u91cc\u3002<\/p>\n<p>\u4ece\u6e05\u5355\u53ef\u4ee5\u770b\u51fa&#xff0c;\u6e90\u7801\u628a SplashPage\u3001Index\u3001\u9898\u5e93\u8be6\u60c5\u9875\u3001\u5730\u533a\u9898\u5e93\u9875\u3001\u7ec3\u4e60\u9875\u3001\u7ed3\u679c\u9875\u3001\u641c\u7d22\u9875\u3001\u5206\u7c7b\u9875\u3001\u7edf\u8ba1\u9875\u3001\u8bbe\u7f6e\u9875\u90fd\u6ce8\u518c\u4e3a\u53ef\u8def\u7531\u9875\u9762\u3002Index \u662f\u4e00\u7ea7\u5165\u53e3&#xff0c;\u5176\u4ed6\u591a\u6570\u9875\u9762\u662f\u4e8c\u7ea7\u6216\u4e13\u9898\u5165\u53e3\u3002\u6587\u7ae0\u8ba8\u8bba\u201c\u7edf\u4e00\u9875\u9762\u5165\u53e3\u201d&#xff0c;\u4e0d\u662f\u8bf4\u6240\u6709\u9875\u9762\u90fd\u53ea\u4ece Index \u76f4\u63a5\u52a0\u8f7d&#xff0c;\u800c\u662f\u8bf4\u7528\u6237\u8fdb\u5165\u4e3b\u5e94\u7528\u540e&#xff0c;\u4e00\u7ea7\u7ed3\u6784\u7531 Index \u627f\u62c5&#xff0c;\u4e8c\u7ea7\u9875\u9762\u6309\u9700\u4ece\u5404\u529f\u80fd\u5165\u53e3 push \u51fa\u53bb\u3002<\/p>\n<p>\u5982\u679c\u4e00\u4e2a\u9875\u9762\u51fa\u73b0\u5728 main_pages.json&#xff0c;\u4f46\u6ca1\u6709\u660e\u786e\u5165\u53e3&#xff0c;\u6d4b\u8bd5\u65f6\u5c31\u8981\u786e\u8ba4\u5b83\u662f\u5426\u4ecd\u88ab\u67d0\u4e2a\u4e1a\u52a1\u5206\u652f\u4f7f\u7528\u3002\u4f8b\u5982\u5730\u533a\u9898\u5e93\u9875\u53ef\u80fd\u4f5c\u4e3a\u56fa\u5b9a\u9898\u5e93\u5165\u53e3\u5b58\u5728&#xff1b;\u5982\u679c\u5c06\u6765\u5220\u9664\u5165\u53e3&#xff0c;\u5c31\u9700\u8981\u540c\u6b65\u6e05\u7406\u8def\u7531\u6e05\u5355\u3002\u53cd\u8fc7\u6765&#xff0c;\u5982\u679c\u4ee3\u7801\u91cc\u65b0\u589e router.pushUrl({ url: &#039;pages\/NewPage&#039; })&#xff0c;\u4f46\u5fd8\u8bb0\u628a\u9875\u9762\u52a0\u5165\u6e05\u5355&#xff0c;\u95ee\u9898\u901a\u5e38\u4f1a\u66b4\u9732\u5728\u9875\u9762\u8df3\u8f6c\u65f6&#xff0c;\u800c\u4e0d\u662f\u7f16\u8bd1\u9636\u6bb5\u3002<\/p>\n<h3>3. Index \u7528 StorageLink \u7edf\u4e00\u4e94\u4e2a\u4e00\u7ea7 Tab<\/h3>\n<p><img decoding=\"async\" alt=\"\u4e3b\u5bfc\u822a\u8fd0\u884c\u6d41\u7a0b\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730172430-6a6b88ce4f6d7.png\" \/><\/p>\n<p>Index.ets \u662f\u4e3b\u5bfc\u822a\u7684\u6838\u5fc3\u3002\u6e90\u7801\u91cc\u5b9a\u4e49\u4e86\u4e00\u4e2a TabItem \u63a5\u53e3&#xff0c;\u5305\u542b\u6807\u9898\u3001\u666e\u901a\u56fe\u6807\u3001\u9009\u4e2d\u56fe\u6807\u3002\u7ec4\u4ef6\u5185\u90e8\u901a\u8fc7 &#064;StorageLink(&#039;currentTabIndex&#039;) currentIndex \u6301\u6709\u5f53\u524d\u4e00\u7ea7 Tab&#xff1a;<\/p>\n<p>&#064;StorageLink(&#039;currentTabIndex&#039;) currentIndex: number &#061; 0<br \/>\n&#064;StorageLink(&#039;wrongRecords&#039;) wrongRecords: WrongRecord[] &#061; []<br \/>\n&#064;StorageLink(&#039;currentBreakpoint&#039;) currentBp: string &#061; &#039;sm&#039;<br \/>\n&#064;StorageLink(&#039;topAvoidAreaHeightPx&#039;) topAvoidAreaHeightPx: number &#061; 0<br \/>\n&#064;StorageLink(&#039;navigationIndicatorHeightPx&#039;) navigationIndicatorHeightPx: number &#061; 0<\/p>\n<p>\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230\u4e3b\u5bfc\u822a\u4f9d\u8d56\u4e09\u7c7b\u72b6\u6001\u3002\u7b2c\u4e00\u7c7b\u662f\u5bfc\u822a\u72b6\u6001&#xff1a;currentTabIndex \u63a7\u5236\u5f53\u524d\u663e\u793a\u54ea\u4e2a Tab\u3002\u7b2c\u4e8c\u7c7b\u662f\u4e1a\u52a1\u63d0\u793a\u72b6\u6001&#xff1a;wrongRecords \u7528\u4e8e\u5728\u9519\u9898 Tab \u4e0a\u663e\u793a\u6570\u91cf\u5fbd\u6807\u3002\u7b2c\u4e09\u7c7b\u662f\u8bbe\u5907\u73af\u5883\u72b6\u6001&#xff1a;currentBreakpoint\u3001\u9876\u90e8\u907f\u8ba9\u533a\u3001\u5e95\u90e8\u5bfc\u822a\u6307\u793a\u5668\u9ad8\u5ea6\u7528\u4e8e\u5e03\u5c40\u9002\u914d\u548c\u5b89\u5168\u533a\u907f\u8ba9\u3002<\/p>\n<p>\u9875\u9762\u5185\u5bb9\u901a\u8fc7 PageContent() \u5206\u53d1&#xff1a;<\/p>\n<p>&#064;Builder<br \/>\nPageContent() {<br \/>\n  if (this.currentIndex &#061;&#061;&#061; 0) {<br \/>\n    HomePage()<br \/>\n  } else if (this.currentIndex &#061;&#061;&#061; 1) {<br \/>\n    BankListPage()<br \/>\n  } else if (this.currentIndex &#061;&#061;&#061; 2) {<br \/>\n    ExamTab()<br \/>\n  } else if (this.currentIndex &#061;&#061;&#061; 3) {<br \/>\n    FavoritePage()<br \/>\n  } else {<br \/>\n    MinePage()<br \/>\n  }<br \/>\n}<\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u8bf4\u660e\u4e00\u7ea7 Tab \u4e0d\u662f\u7528 router.pushUrl \u5207\u6362&#xff0c;\u800c\u662f\u901a\u8fc7\u72b6\u6001\u9a71\u52a8\u6761\u4ef6\u6e32\u67d3\u3002\u8fd9\u6837\u7528\u6237\u4ece\u9996\u9875\u5207\u5230\u9898\u5e93\u3001\u6311\u6218\u3001\u6536\u85cf\u3001\u6211\u7684&#xff0c;\u4e0d\u4f1a\u628a\u6bcf\u6b21 Tab \u5207\u6362\u90fd\u653e\u8fdb\u7cfb\u7edf\u8fd4\u56de\u6808\u3002\u5bf9\u5e95\u90e8\u5bfc\u822a\u5e94\u7528\u6765\u8bf4&#xff0c;\u8fd9\u662f\u66f4\u7b26\u5408\u9884\u671f\u7684\u884c\u4e3a&#xff1a;\u8fd4\u56de\u952e\u901a\u5e38\u5e94\u8be5\u9000\u51fa\u5f53\u524d\u4e8c\u7ea7\u9875\u6216\u5e94\u7528&#xff0c;\u800c\u4e0d\u662f\u4f9d\u6b21\u56de\u653e\u7528\u6237\u70b9\u8fc7\u7684 Tab\u3002<\/p>\n<p>BottomNavItem(index) \u548c SideNavItem(index) \u90fd\u901a\u8fc7\u70b9\u51fb\u4fee\u6539 currentIndex&#xff1a;<\/p>\n<p>.onClick(() &#061;&gt; { this.currentIndex &#061; index })<\/p>\n<p>\u540c\u4e00\u4e2a\u72b6\u6001\u540c\u65f6\u670d\u52a1\u624b\u673a\u5e95\u90e8 Tab \u548c\u5bbd\u5c4f\u4fa7\u8fb9\u680f\u3002\u8fd9\u6bd4\u7ef4\u62a4\u4e24\u5957\u5bfc\u822a\u72b6\u6001\u66f4\u7a33\u3002\u6e90\u7801\u4e2d\u7528 currentBreakpoint \u5224\u65ad\u5e03\u5c40\u5f62\u6001&#xff1a;\u5c0f\u5c4f\u548c\u5e38\u89c4\u65ad\u70b9\u4f7f\u7528\u5e95\u90e8\u5bfc\u822a&#xff0c;\u5176\u4ed6\u60c5\u51b5\u4f7f\u7528\u4fa7\u8fb9\u5bfc\u822a\u52a0\u5185\u5bb9\u533a\u3002\u5bfc\u822a\u5165\u53e3\u6ca1\u6709\u56e0\u4e3a\u8bbe\u5907\u5f62\u6001\u53d8\u5316\u800c\u53d8\u6210\u4e24\u5957\u4e1a\u52a1\u903b\u8f91&#xff0c;\u53ea\u662f\u5448\u73b0\u65b9\u5f0f\u4e0d\u540c\u3002<\/p>\n<h3>4. \u624b\u673a\u5e95\u90e8\u5bfc\u822a\u4e0e\u5bbd\u5c4f\u4fa7\u8fb9\u5bfc\u822a\u5171\u4eab\u540c\u4e00\u5957\u72b6\u6001<\/h3>\n<p>Index \u7684 build() \u91cc&#xff0c;\u6e90\u7801\u6839\u636e currentBp \u5206\u652f\u6e32\u67d3\u3002\u5c0f\u5c4f\u6a21\u5f0f\u4e0b\u662f Column&#xff1a;\u4e0a\u65b9 Stack \u653e\u5f53\u524d\u9875\u9762\u5185\u5bb9&#xff0c;\u4e0b\u65b9 Row \u653e\u4e94\u4e2a\u5e95\u90e8\u5bfc\u822a\u9879\u3002\u5bbd\u5c4f\u6a21\u5f0f\u4e0b\u662f Row&#xff1a;\u5de6\u4fa7 Column \u653e Logo \u548c\u4fa7\u8fb9\u5bfc\u822a\u9879&#xff0c;\u53f3\u4fa7 Stack \u653e\u5f53\u524d\u5185\u5bb9\u3002<\/p>\n<p>\u8fd9\u4e00\u70b9\u5bf9\u591a\u8bbe\u5907\u5f00\u53d1\u5f88\u5173\u952e\u3002\u5f88\u591a\u5e94\u7528\u5728\u9002\u914d\u5e73\u677f\u6216 2in1 \u65f6&#xff0c;\u4f1a\u590d\u5236\u4e00\u5957\u9875\u9762\u5165\u53e3&#xff0c;\u7ed3\u679c\u5e95\u90e8 Tab \u548c\u4fa7\u8fb9\u680f\u5206\u522b\u7ef4\u62a4\u72b6\u6001&#xff0c;\u8df3\u8f6c\u548c\u5fbd\u6807\u903b\u8f91\u5f88\u5bb9\u6613\u4e0d\u4e00\u81f4\u3002\u5f53\u524d\u6e90\u7801\u4f7f\u7528\u540c\u4e00\u4e2a currentIndex\u3001\u540c\u4e00\u4e2a tabs \u6570\u7ec4\u3001\u540c\u4e00\u4e2a PageContent()&#xff0c;\u53ea\u662f BottomNavItem \u548c SideNavItem \u7684 UI \u5f62\u6001\u4e0d\u540c\u3002<\/p>\n<p>\u5e95\u90e8\u5b89\u5168\u533a\u4e5f\u5728\u4e3b\u5bfc\u822a\u91cc\u7edf\u4e00\u5904\u7406&#xff1a;<\/p>\n<p>private bottomSafePadding(): number {<br \/>\n  return Math.max(Sizes.BOTTOM_NAV_MIN_PADDING, this.getUIContext().px2vp(this.navigationIndicatorHeightPx))<br \/>\n}<\/p>\n<p>private topSafePadding(): number {<br \/>\n  return Math.max(Sizes.PADDING_SMALL, this.getUIContext().px2vp(this.topAvoidAreaHeightPx))<br \/>\n}<\/p>\n<p>private bottomNavHeight(): number {<br \/>\n  return Sizes.TAB_BAR_HEIGHT &#043; this.bottomSafePadding()<br \/>\n}<\/p>\n<p>\u8fd9\u4e09\u6bb5\u65b9\u6cd5\u628a\u7a97\u53e3\u907f\u8ba9\u533a\u4ece\u50cf\u7d20\u8f6c\u4e3a vp&#xff0c;\u5e76\u7528\u6700\u5c0f padding \u505a\u515c\u5e95\u3002\u5b83\u4eec\u548c\u4e0a\u4e00\u7bc7\u542f\u52a8\u94fe\u8def\u4e2d\u7684 EntryAbility.updateNavigationIndicatorHeight() \u5bf9\u5e94&#xff1a;Ability \u8d1f\u8d23\u4ece\u7a97\u53e3\u8bfb\u53d6 px&#xff0c;Index \u8d1f\u8d23\u5728 UI \u5c42\u8f6c\u6362\u548c\u4f7f\u7528\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u9875\u9762\u91cc\u786c\u7f16\u7801\u56fa\u5b9a\u5e95\u90e8\u7559\u767d&#xff0c;\u4e5f\u907f\u514d\u5e95\u90e8\u5bfc\u822a\u538b\u5230\u7cfb\u7edf\u624b\u52bf\u533a\u3002<\/p>\n<p>\u9519\u9898\u6570\u91cf\u5fbd\u6807\u540c\u6837\u5728\u4e3b\u5bfc\u822a\u9879\u91cc\u5904\u7406\u3002\u5f53 index &#061;&#061;&#061; 3 &amp;&amp; this.wrongRecords.length &gt; 0 \u65f6&#xff0c;\u5e95\u90e8 Tab \u548c\u4fa7\u8fb9 Tab \u90fd\u663e\u793a\u6570\u91cf&#xff0c;\u8d85\u8fc7 99 \u663e\u793a 99&#043;\u3002\u8fd9\u5c5e\u4e8e\u5bfc\u822a\u5c42\u53ef\u4ee5\u627f\u62c5\u7684\u63d0\u793a\u4fe1\u606f&#xff0c;\u56e0\u4e3a\u5b83\u76f4\u63a5\u670d\u52a1\u201c\u6536\u85cf\/\u9519\u9898\u5165\u53e3\u662f\u5426\u6709\u5f85\u5904\u7406\u5185\u5bb9\u201d\u3002\u4f46\u771f\u6b63\u7684\u9519\u9898\u5217\u8868\u3001\u9519\u9898\u7ec3\u4e60\u903b\u8f91\u4ecd\u7136\u5728 FavoritePage \u548c PracticePage \u4e2d&#xff0c;\u4e0d\u5e94\u8be5\u585e\u8fdb Index\u3002<\/p>\n<h3>5. HomePage \u540c\u65f6\u5904\u7406 Tab \u5207\u6362\u548c\u4e8c\u7ea7\u8def\u7531<\/h3>\n<p>HomePage.ets \u662f\u4e3b\u5bfc\u822a\u4e0b\u7684\u9996\u9875\u5185\u5bb9\u3002\u5b83\u6ca1\u6709\u76f4\u63a5\u66ff\u4ee3 Index&#xff0c;\u800c\u662f\u5728\u9996\u9875\u5185\u90e8\u63d0\u4f9b\u5feb\u6377\u5165\u53e3\u3002\u6e90\u7801\u91cc\u65e2\u6709\u72b6\u6001\u5f0f Tab \u5207\u6362&#xff0c;\u4e5f\u6709 router.pushUrl \u4e8c\u7ea7\u8df3\u8f6c\u3002<\/p>\n<p>\u4f8b\u5982\u63a8\u8350\u9898\u5e93\u533a\u57df\u7684\u201c\u66f4\u591a\u201d\u52a8\u4f5c&#xff1a;<\/p>\n<p>SectionHeader({<br \/>\n  title: &#039;\u63a8\u8350\u9898\u5e93&#039;,<br \/>\n  actionText: &#039;\u66f4\u591a &gt;&#039;,<br \/>\n  onAction: () &#061;&gt; { this.currentTabIndex &#061; 1 }<br \/>\n})<\/p>\n<p>\u8fd9\u91cc\u9009\u62e9\u4fee\u6539 currentTabIndex&#xff0c;\u56e0\u4e3a\u201c\u66f4\u591a\u9898\u5e93\u201d\u672c\u8d28\u4e0a\u662f\u8fdb\u5165\u4e00\u7ea7\u9898\u5e93 Tab&#xff0c;\u4e0d\u9700\u8981\u8fdb\u5165\u65b0\u9875\u9762&#xff0c;\u4e5f\u4e0d\u9700\u8981\u8fd4\u56de\u6808\u3002\u7528\u6237\u4ece\u9996\u9875\u70b9\u201c\u66f4\u591a\u201d\u5207\u5230\u9898\u5e93 Tab \u540e&#xff0c;\u8fd4\u56de\u952e\u4e0d\u5e94\u56de\u5230\u9996\u9875 Tab\u3002<\/p>\n<p>\u5206\u7c7b\u533a\u57df\u7684\u201c\u5168\u90e8\u201d\u52a8\u4f5c\u5219\u4e0d\u540c&#xff1a;<\/p>\n<p>SectionHeader({<br \/>\n  title: &#039;\u9898\u578b\u5206\u7c7b&#039;,<br \/>\n  actionText: &#039;\u5168\u90e8 &gt;&#039;,<br \/>\n  onAction: () &#061;&gt; { router.pushUrl({ url: &#039;pages\/CategoryPage&#039; }) }<br \/>\n})<\/p>\n<p>\u5206\u7c7b\u9875\u662f\u4e00\u4e2a\u4e8c\u7ea7\u9875\u9762\u3002\u5b83\u5e94\u8be5\u6709\u72ec\u7acb\u8fd4\u56de\u8def\u5f84&#xff0c;\u56e0\u6b64\u4f7f\u7528 pushUrl\u3002\u540c\u6837&#xff0c;\u641c\u7d22\u6309\u94ae\u4f7f\u7528 router.pushUrl({ url: &#039;pages\/SearchPage&#039; })&#xff0c;\u5206\u7c7b\u9879\u70b9\u51fb\u4f7f\u7528&#xff1a;<\/p>\n<p>router.pushUrl({<br \/>\n  url: &#039;pages\/SearchPage&#039;,<br \/>\n  params: { categoryType: cat.type, categoryName: cat.name }<br \/>\n})<\/p>\n<p>\u8fd9\u8bf4\u660e\u6e90\u7801\u5bf9\u201c\u4e00\u7ea7\u5165\u53e3\u201d\u548c\u201c\u4e8c\u7ea7\u9875\u9762\u201d\u505a\u4e86\u533a\u5206\u3002\u4e00\u7ea7\u5165\u53e3\u6539 Tab \u72b6\u6001&#xff0c;\u4e8c\u7ea7\u9875\u9762\u8fdb\u5165\u8def\u7531\u6808\u3002\u8fd9\u4e2a\u8fb9\u754c\u6bd4\u7edf\u4e00\u5199 router.pushUrl \u66f4\u91cd\u8981&#xff0c;\u56e0\u4e3a\u5b83\u76f4\u63a5\u51b3\u5b9a\u8fd4\u56de\u884c\u4e3a\u662f\u5426\u7b26\u5408\u7528\u6237\u9884\u671f\u3002<\/p>\n<p>\u5feb\u901f\u64cd\u4f5c\u533a\u4e5f\u4f53\u73b0\u4e86\u8fd9\u4e2a\u539f\u5219&#xff1a;<\/p>\n<p>this.ActionCard(&#039;\u9650\u65f6\u6311\u6218&#039;, &#039;60 \u79d2\u5feb\u901f\u7ea0\u9519&#039;, () &#061;&gt; { this.currentTabIndex &#061; 2 })<br \/>\nthis.ActionCard(&#039;\u9519\u9898\u590d\u4e60&#039;, &#096;${this.wrongRecords.length} \u9053\u9519\u9898&#096;, () &#061;&gt; {<br \/>\n  this.favoriteTabIndex &#061; 2<br \/>\n  this.currentTabIndex &#061; 3<br \/>\n})<\/p>\n<p>\u201c\u9650\u65f6\u6311\u6218\u201d\u8fdb\u5165\u6311\u6218 Tab&#xff0c;\u201c\u9519\u9898\u590d\u4e60\u201d\u8fdb\u5165\u6536\u85cf\/\u9519\u9898\u76f8\u5173 Tab&#xff0c;\u5e76\u540c\u6b65\u8bbe\u7f6e favoriteTabIndex\u3002\u8fd9\u91cc\u6ca1\u6709 push \u5230\u65b0\u9875\u9762&#xff0c;\u56e0\u4e3a\u76ee\u6807\u662f\u4e00\u7ea7\u533a\u57df\u5185\u90e8\u72b6\u6001\u5207\u6362\u3002\u7528\u6237\u770b\u5230\u7684\u662f\u4e3b\u9875\u9762\u5207\u6362&#xff0c;\u800c\u4e0d\u662f\u65b0\u9875\u9762\u538b\u6808\u3002<\/p>\n<h3>6. \u4e8c\u7ea7\u9875\u9762\u901a\u8fc7 params \u8fdb\u5165&#xff0c;\u5e76\u5728 aboutToAppear \u8bfb\u53d6<\/h3>\n<p><img decoding=\"async\" alt=\"\u4e3b\u5bfc\u822a\u804c\u8d23\u7ed3\u6784\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730172430-6a6b88cedaf03.png\" \/><\/p>\n<p>\u4e3b\u5bfc\u822a\u4e4b\u5916&#xff0c;\u4e8c\u7ea7\u9875\u9762\u9700\u8981\u53c2\u6570\u3002BankDetailPage.ets \u5b9a\u4e49\u4e86&#xff1a;<\/p>\n<p>interface BankDetailParams {<br \/>\n  bankId: string<br \/>\n}<\/p>\n<p>\u5728 aboutToAppear() \u4e2d&#xff0c;\u5b83\u5148\u5224\u65ad fixedBankId&#xff0c;\u518d\u8bfb\u53d6 router.getParams()&#xff1a;<\/p>\n<p>aboutToAppear(): void {<br \/>\n  if (this.fixedBankId.length &gt; 0) {<br \/>\n    this.bank &#061; getBankById(this.fixedBankId)<br \/>\n    return<br \/>\n  }<br \/>\n  const params &#061; router.getParams() as BankDetailParams | undefined<br \/>\n  if (params &amp;&amp; params.bankId) {<br \/>\n    this.bank &#061; getBankById(params.bankId)<br \/>\n  }<br \/>\n}<\/p>\n<p>\u8fd9\u6bb5\u903b\u8f91\u8bf4\u660e\u9898\u5e93\u8be6\u60c5\u9875\u652f\u6301\u4e24\u79cd\u5165\u53e3&#xff1a;\u56fa\u5b9a\u9898\u5e93\u9875\u4f20\u5165 fixedBankId&#xff0c;\u666e\u901a\u8be6\u60c5\u9875\u901a\u8fc7\u8def\u7531\u53c2\u6570\u4f20\u5165 bankId\u3002\u53c2\u6570\u5b58\u5728\u65f6\u518d\u67e5\u9898\u5e93&#xff0c;\u907f\u514d\u65e0\u53c2\u6570\u65f6\u76f4\u63a5\u8bbf\u95ee\u672a\u5b9a\u4e49\u5b57\u6bb5\u3002\u9875\u9762\u6807\u9898\u4e5f\u57fa\u4e8e this.bank ? this.bank.name : &#039;\u9898\u5e93\u8be6\u60c5&#039; \u505a\u515c\u5e95\u3002<\/p>\n<p>PracticePage.ets \u7684\u53c2\u6570\u66f4\u590d\u6742&#xff1a;<\/p>\n<p>interface PracticeParams {<br \/>\n  bankId: string<br \/>\n  chapterId?: string<br \/>\n  mode: string<br \/>\n  records?: string<br \/>\n  questionType?: string<br \/>\n  startQuestionId?: string<br \/>\n}<\/p>\n<p>\u7ec3\u4e60\u9875\u5728 aboutToAppear() \u4e2d\u8bfb\u53d6 params \u540e&#xff0c;\u6839\u636e mode \u548c chapterId \u51b3\u5b9a\u52a0\u8f7d\u9519\u9898\u3001\u7ae0\u8282\u9898\u3001\u968f\u673a\u9898\u6216\u6311\u6218\u9898\u3002\u5b83\u8fd8\u5904\u7406\u4e86\u7a7a\u9898\u76ee\u515c\u5e95&#xff1a;<\/p>\n<p>if (this.questions.length &#061;&#061;&#061; 0 &amp;&amp; this.mode !&#061;&#061; &#039;wrongAnalysis&#039;) {<br \/>\n  this.questions &#061; getQuestions(params.bankId)<br \/>\n}<\/p>\n<p>\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u53c2\u6570\u6821\u9a8c\u6846\u67b6&#xff0c;\u4f46\u5df2\u7ecf\u4f53\u73b0\u4e86\u5173\u952e\u539f\u5219&#xff1a;\u8def\u7531\u53c2\u6570\u8fdb\u5165\u9875\u9762\u540e&#xff0c;\u9875\u9762\u4e0d\u5e94\u65e0\u6761\u4ef6\u76f8\u4fe1\u6240\u6709\u5b57\u6bb5\u90fd\u53ef\u7528&#xff1b;\u81f3\u5c11\u8981\u5224\u65ad params \u662f\u5426\u5b58\u5728\u3001\u5173\u952e\u5b57\u6bb5\u662f\u5426\u5b58\u5728\u3001\u67e5\u8be2\u7ed3\u679c\u662f\u5426\u4e3a\u7a7a&#xff0c;\u5e76\u7ed9\u51fa\u53ef\u7ee7\u7eed\u8fd0\u884c\u7684\u9ed8\u8ba4\u8def\u5f84\u3002<\/p>\n<p>SearchPage.ets \u4e5f\u91c7\u7528\u7c7b\u4f3c\u65b9\u5f0f&#xff1a;<\/p>\n<p>const params &#061; router.getParams() as SearchParams | undefined<br \/>\nif (params &amp;&amp; params.categoryType) {<br \/>\n  this.categoryType &#061; params.categoryType<br \/>\n  this.categoryName &#061; params.categoryName || params.categoryType<br \/>\n  this.keyword &#061; this.categoryName<br \/>\n  this.doSearch()<br \/>\n}<\/p>\n<p>\u641c\u7d22\u9875\u5141\u8bb8\u65e0\u53c2\u6570\u8fdb\u5165&#xff0c;\u4e5f\u5141\u8bb8\u5e26\u5206\u7c7b\u53c2\u6570\u8fdb\u5165\u3002\u65e0\u53c2\u6570\u65f6\u5c55\u793a\u666e\u901a\u641c\u7d22\u72b6\u6001&#xff1b;\u5e26\u53c2\u6570\u65f6\u76f4\u63a5\u628a\u5206\u7c7b\u540d\u653e\u8fdb\u5173\u952e\u8bcd\u5e76\u6267\u884c\u641c\u7d22\u3002categoryName || categoryType \u662f\u4e00\u4e2a\u5c0f\u515c\u5e95&#xff0c;\u907f\u514d\u53ea\u4f20\u7c7b\u578b\u4e0d\u4f20\u663e\u793a\u540d\u65f6\u9875\u9762\u6ca1\u6709\u53ef\u8bfb\u6807\u9898\u3002<\/p>\n<h3>7. \u8fd4\u56de\u8def\u5f84\u7531\u4e8c\u7ea7\u9875\u9762\u81ea\u5df1\u6536\u53e3<\/h3>\n<p>\u6e90\u7801\u4e2d\u591a\u4e2a\u9875\u9762\u4f7f\u7528 router.back()\u3002\u516c\u5171\u7ec4\u4ef6 TopBar.ets \u91cc\u6709\u8fd4\u56de\u6309\u94ae&#xff0c;\u70b9\u51fb\u65f6\u8c03\u7528 router.back()&#xff1b;SearchPage \u9876\u90e8\u8fd4\u56de\u3001PracticePage \u7684\u9000\u51fa\u548c\u90e8\u5206\u64cd\u4f5c\u3001SettingsPage \u7684\u5feb\u6377\u8df3\u56de\u4e3b Tab \u540e\u8fd4\u56de&#xff0c;\u90fd\u80fd\u770b\u5230\u8fd9\u4e00\u6a21\u5f0f\u3002<\/p>\n<p>\u8fd9\u8bf4\u660e\u4e3b\u5bfc\u822a\u4e0d\u662f\u63a5\u7ba1\u6240\u6709\u8fd4\u56de\u903b\u8f91&#xff0c;\u800c\u662f\u628a\u8fd4\u56de\u8def\u5f84\u7559\u7ed9\u4e8c\u7ea7\u9875\u9762\u3002\u4e00\u7ea7 Tab \u901a\u8fc7\u72b6\u6001\u5207\u6362&#xff0c;\u4e8c\u7ea7\u9875\u9762\u901a\u8fc7\u8def\u7531\u8fd4\u56de\u3002\u8fd9\u6837\u9875\u9762\u884c\u4e3a\u66f4\u5bb9\u6613\u89e3\u91ca&#xff1a;<\/p>\n<table>\n<tr>\u573a\u666f\u6e90\u7801\u52a8\u4f5c\u7528\u6237\u9884\u671f<\/tr>\n<tbody>\n<tr>\n<td>\u9996\u9875\u5207\u5230\u9898\u5e93 Tab<\/td>\n<td>\u4fee\u6539 currentTabIndex &#061; 1<\/td>\n<td>\u4e0d\u4ea7\u751f\u65b0\u8fd4\u56de\u5c42\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u9996\u9875\u8fdb\u5165\u641c\u7d22\u9875<\/td>\n<td>router.pushUrl({ url: &#039;pages\/SearchPage&#039; })<\/td>\n<td>\u8fd4\u56de\u56de\u5230 Index \u5f53\u524d\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u7c7b\u8fdb\u5165\u641c\u7d22\u9875<\/td>\n<td>pushUrl \u5e76\u5e26 categoryType<\/td>\n<td>\u8fd4\u56de\u56de\u5230\u5206\u7c7b\u5165\u53e3<\/td>\n<\/tr>\n<tr>\n<td>\u8bbe\u7f6e\u9875\u8df3\u6536\u85cf Tab<\/td>\n<td>\u6539 favoriteTabIndex\/currentTabIndex \u540e router.back()<\/td>\n<td>\u56de\u5230\u4e3b\u9875\u9762\u6307\u5b9a Tab<\/td>\n<\/tr>\n<tr>\n<td>\u542f\u52a8\u9875\u8fdb\u5165\u9996\u9875<\/td>\n<td>router.replaceUrl({ url: &#039;pages\/Index&#039; })<\/td>\n<td>\u8fd4\u56de\u4e0d\u56de\u542f\u52a8\u9875<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e2a\u8868\u80fd\u770b\u51fa\u6e90\u7801\u7684\u8fb9\u754c&#xff1a;Tab \u5207\u6362\u662f\u5e94\u7528\u5185\u72b6\u6001&#xff0c;\u4e8c\u7ea7\u9875\u9762\u662f\u8def\u7531\u6808&#xff0c;\u542f\u52a8\u9875\u662f\u4e00\u6b21\u6027\u5165\u53e3\u3002\u53ea\u8981\u8fd9\u4e2a\u8fb9\u754c\u4e0d\u4e71&#xff0c;\u8fd4\u56de\u8def\u5f84\u5c31\u4e0d\u4f1a\u53d8\u5f97\u96be\u4ee5\u9884\u6d4b\u3002<\/p>\n<h3>8. \u5f53\u524d\u6e90\u7801\u7684\u53c2\u6570\u6821\u9a8c\u8fb9\u754c<\/h3>\n<p>\u4ece\u4e25\u8c28\u89d2\u5ea6\u770b&#xff0c;\u5f53\u524d\u6e90\u7801\u505a\u4e86\u57fa\u7840\u53c2\u6570\u515c\u5e95&#xff0c;\u4f46\u8fd8\u6ca1\u6709\u62bd\u8c61\u6210\u7edf\u4e00\u7684\u8def\u7531\u53c2\u6570\u6821\u9a8c\u6a21\u5757\u3002\u6bd4\u5982 BankDetailPage \u5224\u65ad\u4e86 params &amp;&amp; params.bankId&#xff0c;\u4f46\u5982\u679c\u4f20\u5165\u4e0d\u5b58\u5728\u7684 bankId&#xff0c;getBankById \u8fd4\u56de undefined&#xff0c;\u9875\u9762\u4f1a\u663e\u793a\u9ed8\u8ba4\u6807\u9898\u548c\u540e\u7eed\u7a7a\u72b6\u6001\u3002PracticePage \u4f1a\u5728\u9898\u76ee\u4e3a\u7a7a\u65f6\u56de\u9000\u5230 getQuestions(params.bankId)&#xff0c;\u4f46\u5982\u679c bankId \u672c\u8eab\u65e0\u6548&#xff0c;\u4ecd\u9700\u8981\u9875\u9762\u540e\u7eed\u72b6\u6001\u5904\u7406\u515c\u5e95\u3002<\/p>\n<p>\u8fd9\u7c7b\u8fb9\u754c\u5728\u6280\u672f\u6587\u7ae0\u91cc\u5fc5\u987b\u8bf4\u6e05\u3002\u53ef\u590d\u6838\u6e90\u7801\u652f\u6301\u7684\u7ed3\u8bba\u662f&#xff1a;\u201c\u9875\u9762\u5165\u53e3\u8bfb\u53d6\u53c2\u6570\u65f6\u6709\u5b58\u5728\u6027\u5224\u65ad\u548c\u90e8\u5206\u7a7a\u6570\u636e\u56de\u9000\u201d&#xff1b;\u4e0d\u80fd\u5199\u6210\u201c\u5b9e\u73b0\u4e86\u5b8c\u6574\u7c7b\u578b\u5b89\u5168\u8def\u7531\u534f\u8bae\u201d\u3002\u5982\u679c\u540e\u7eed\u8981\u52a0\u5f3a&#xff0c;\u53ef\u4ee5\u65b0\u589e\u4e00\u4e2a\u8f7b\u91cf\u65b9\u6cd5\u7edf\u4e00\u5224\u65ad&#xff1a;<\/p>\n<p>private hasUsableBankId(value: string): boolean {<br \/>\n  return value.trim().length &gt; 0 &amp;&amp; getBankById(value) !&#061;&#061; undefined<br \/>\n}<\/p>\n<p>\u8fd9\u6bb5\u793a\u4f8b\u8bf4\u660e\u589e\u5f3a\u65b9\u5411&#xff1a;\u6821\u9a8c\u4e0d\u53ea\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u5b58\u5728&#xff0c;\u8fd8\u68c0\u67e5\u4e1a\u52a1\u5bf9\u8c61\u662f\u5426\u80fd\u67e5\u5230\u3002\u5bf9\u4e8e\u7ec3\u4e60\u9875&#xff0c;\u8fd8\u53ef\u4ee5\u628a mode \u9650\u5236\u5728 &#039;chapter&#039; | &#039;random&#039; | &#039;exam&#039; | &#039;wrong&#039; | &#039;wrongAnalysis&#039; \u8303\u56f4\u5185&#xff0c;\u907f\u514d\u672a\u77e5 mode \u8fdb\u5165\u4e0d\u660e\u786e\u5206\u652f\u3002\u5f53\u524d\u6e90\u7801\u6ca1\u6709\u5b8c\u6574\u5b9e\u73b0\u8fd9\u4e2a\u5c01\u88c5&#xff0c;\u56e0\u6b64\u672c\u6587\u53ea\u628a\u5b83\u4f5c\u4e3a\u53ef\u6f14\u8fdb\u5efa\u8bae\u3002<\/p>\n<h3>9. \u9a8c\u8bc1\u4e3b\u5bfc\u822a\u662f\u5426\u7a33\u5b9a<\/h3>\n<p>\u9a8c\u8bc1\u4e3b\u5bfc\u822a\u4e0d\u80fd\u53ea\u770b\u9996\u9875\u80fd\u5426\u663e\u793a&#xff0c;\u8fd8\u8981\u6309\u5165\u53e3\u8def\u5f84\u9010\u6761\u8d70\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u542f\u52a8\u8def\u5f84&#xff1a;\u542f\u52a8\u9875 2 \u79d2\u540e\u5e94\u8fdb\u5165 pages\/Index&#xff0c;\u8fd4\u56de\u4e0d\u5e94\u56de\u5230 SplashPage\u3002\u8fd9\u662f replaceUrl \u7684\u9a8c\u8bc1\u70b9\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u4e00\u7ea7 Tab&#xff1a;\u70b9\u51fb\u5e95\u90e8\u6216\u4fa7\u8fb9\u4e94\u4e2a\u5bfc\u822a\u9879&#xff0c;currentTabIndex \u5e94\u5207\u6362\u5230 0 \u5230 4&#xff0c;\u5bf9\u5e94\u663e\u793a\u9996\u9875\u3001\u9898\u5e93\u3001\u6311\u6218\u3001\u6536\u85cf\u3001\u6211\u7684\u3002\u9519\u9898\u6570\u91cf\u5b58\u5728\u65f6&#xff0c;\u6536\u85cf Tab \u5e94\u663e\u793a\u5fbd\u6807\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u4e8c\u7ea7\u9875\u9762&#xff1a;\u4ece\u9996\u9875\u641c\u7d22\u6309\u94ae\u8fdb\u5165 SearchPage&#xff0c;\u4ece\u5206\u7c7b\u5361\u7247\u5e26\u53c2\u6570\u8fdb\u5165 SearchPage&#xff0c;\u4ece\u9898\u5e93\u5361\u7247\u8fdb\u5165\u8be6\u60c5\u9875&#xff0c;\u4ece\u8be6\u60c5\u9875\u8fdb\u5165 PracticePage\u3002\u8fd9\u4e9b\u8def\u5f84\u5e94\u80fd\u8fd4\u56de&#xff0c;\u4e0d\u5e94\u628a Tab \u72b6\u6001\u9519\u4e71\u3002<\/p>\n<p>\u7b2c\u56db&#xff0c;\u53c2\u6570\u515c\u5e95&#xff1a;\u76f4\u63a5\u6253\u5f00\u641c\u7d22\u9875\u4e0d\u5e26\u53c2\u6570\u65f6\u5e94\u4fdd\u6301\u53ef\u641c\u7d22\u72b6\u6001&#xff1b;\u5e26 categoryType \u65f6\u5e94\u81ea\u52a8\u641c\u7d22&#xff1b;\u9898\u5e93\u8be6\u60c5\u7f3a\u5c11 bankId \u65f6\u4e0d\u5e94\u5d29\u6e83&#xff1b;\u7ec3\u4e60\u9875\u9898\u76ee\u4e3a\u7a7a\u65f6\u5e94\u6267\u884c\u5df2\u6709\u56de\u9000\u903b\u8f91\u3002<\/p>\n<p>\u7b2c\u4e94&#xff0c;\u591a\u8bbe\u5907\u5e03\u5c40&#xff1a;\u5c0f\u5c4f\u5e95\u90e8\u5bfc\u822a\u5e94\u907f\u8ba9\u5e95\u90e8\u624b\u52bf\u533a&#xff0c;\u5bbd\u5c4f\u4fa7\u8fb9\u5bfc\u822a\u5e94\u5171\u4eab\u540c\u4e00\u5957 currentIndex\u3002\u5207\u6362\u65ad\u70b9\u540e&#xff0c;\u5f53\u524d Tab \u4e0d\u5e94\u88ab\u91cd\u7f6e\u6210\u5176\u4ed6\u9875\u9762\u3002<\/p>\n<h3>10. \u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5<\/h3>\n<table>\n<tr>\u95ee\u9898\u5148\u770b\u54ea\u91cc\u53ef\u80fd\u539f\u56e0\u5904\u7406\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>\u9875\u9762 push \u540e\u6253\u4e0d\u5f00<\/td>\n<td>main_pages.json<\/td>\n<td>\u9875\u9762\u8def\u5f84\u672a\u6ce8\u518c\u6216\u8def\u5f84\u62fc\u5199\u9519\u8bef<\/td>\n<td>\u8865\u9f50 src&#xff0c;\u4fdd\u6301 pages\/xxx \u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u8fd4\u56de\u952e\u56de\u5230\u542f\u52a8\u9875<\/td>\n<td>SplashPage<\/td>\n<td>\u4f7f\u7528\u4e86 pushUrl \u800c\u4e0d\u662f replaceUrl<\/td>\n<td>\u542f\u52a8\u9875\u8fdb\u5165\u9996\u9875\u7528 replaceUrl<\/td>\n<\/tr>\n<tr>\n<td>Tab \u5207\u6362\u540e\u8fd4\u56de\u8def\u5f84\u6df7\u4e71<\/td>\n<td>Index\/\u5165\u53e3\u4ee3\u7801<\/td>\n<td>\u4e00\u7ea7 Tab \u88ab\u5f53\u6210\u4e8c\u7ea7\u9875\u9762 push<\/td>\n<td>\u4e00\u7ea7 Tab \u6539 currentTabIndex<\/td>\n<\/tr>\n<tr>\n<td>\u641c\u7d22\u9875\u53c2\u6570\u4e22\u5931<\/td>\n<td>HomePage \u5206\u7c7b\u5165\u53e3<\/td>\n<td>params \u5b57\u6bb5\u540d\u548c\u9875\u9762\u63a5\u53e3\u4e0d\u4e00\u81f4<\/td>\n<td>\u5bf9\u9f50 categoryType\/categoryName<\/td>\n<\/tr>\n<tr>\n<td>\u7ec3\u4e60\u9875\u7a7a\u767d<\/td>\n<td>PracticePage.aboutToAppear<\/td>\n<td>bankId \u65e0\u6548\u6216\u9898\u76ee\u67e5\u8be2\u4e3a\u7a7a<\/td>\n<td>\u589e\u52a0 bankId \u548c\u9898\u76ee\u6570\u7ec4\u515c\u5e95<\/td>\n<\/tr>\n<tr>\n<td>\u5e95\u90e8\u5bfc\u822a\u88ab\u906e\u6321<\/td>\n<td>Index.bottomSafePadding<\/td>\n<td>\u5b89\u5168\u533a\u9ad8\u5ea6\u672a\u5199\u5165\u6216\u672a\u8f6c\u6362 vp<\/td>\n<td>\u68c0\u67e5 EntryAbility \u907f\u8ba9\u533a\u66f4\u65b0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u5f20\u8868\u5bf9\u5e94\u7684\u90fd\u662f\u6e90\u7801\u4e2d\u80fd\u770b\u5230\u7684\u5bfc\u822a\u8fb9\u754c\u3002\u6392\u67e5\u65f6\u4e0d\u8981\u5148\u5047\u8bbe\u662f\u6846\u67b6\u95ee\u9898&#xff0c;\u5148\u786e\u8ba4\u9875\u9762\u662f\u5426\u5728\u6e05\u5355\u91cc\u3001\u5165\u53e3\u662f\u72b6\u6001\u5207\u6362\u8fd8\u662f\u8def\u7531\u538b\u6808\u3001\u53c2\u6570\u5b57\u6bb5\u662f\u5426\u548c\u76ee\u6807\u9875\u63a5\u53e3\u4e00\u81f4\u3001\u8fd4\u56de\u662f\u5426\u7531\u4e8c\u7ea7\u9875\u81ea\u5df1\u6536\u53e3\u3002<\/p>\n<h3>11. \u5c0f\u7ed3<\/h3>\n<p>\u300c\u7b14\u4e0b\u751f\u8f89\u300d\u7684\u4e3b\u5bfc\u822a\u5b9e\u73b0\u9009\u62e9\u4e86\u4e00\u4e2a\u52a1\u5b9e\u7ed3\u6784&#xff1a;Index \u4f5c\u4e3a\u4e94\u4e2a\u4e00\u7ea7 Tab \u7684\u7edf\u4e00\u5165\u53e3&#xff0c;\u624b\u673a\u5e95\u90e8\u5bfc\u822a\u548c\u5bbd\u5c4f\u4fa7\u8fb9\u5bfc\u822a\u5171\u4eab currentTabIndex&#xff1b;HomePage \u6839\u636e\u76ee\u6807\u5c42\u7ea7\u9009\u62e9\u4fee\u6539 Tab \u72b6\u6001\u6216 router.pushUrl&#xff1b;\u4e8c\u7ea7\u9875\u9762\u5728 aboutToAppear \u4e2d\u8bfb\u53d6 router.getParams()&#xff0c;\u5e76\u5bf9\u7f3a\u7701\u53c2\u6570\u548c\u7a7a\u6570\u636e\u505a\u57fa\u7840\u515c\u5e95&#xff1b;\u8fd4\u56de\u8def\u5f84\u7531\u4e8c\u7ea7\u9875\u9762\u901a\u8fc7 router.back() \u6536\u53e3\u3002<\/p>\n<p>\u8fd9\u5957\u65b9\u6848\u7684\u5173\u952e\u4e0d\u662f\u4ee3\u7801\u91cf&#xff0c;\u800c\u662f\u8fb9\u754c\u4e00\u81f4&#xff1a;\u4e00\u7ea7\u5165\u53e3\u4e0d\u8fdb\u8def\u7531\u6808&#xff0c;\u4e8c\u7ea7\u9875\u9762\u624d\u8fdb\u8def\u7531\u6808&#xff0c;\u542f\u52a8\u9875\u4e0d\u7559\u8fd4\u56de\u6808&#xff0c;\u53c2\u6570\u9875\u4e0d\u65e0\u6761\u4ef6\u76f8\u4fe1\u5916\u90e8\u8f93\u5165\u3002\u5bf9 HarmonyOS 5.0&#043; ArkTS \u5e94\u7528\u6765\u8bf4&#xff0c;\u8fd9\u4e9b\u89c4\u5219\u80fd\u51cf\u5c11\u9996\u9875\u3001\u9898\u5e93\u3001\u7ec3\u4e60\u3001\u641c\u7d22\u3001\u8bbe\u7f6e\u4e4b\u95f4\u7684\u5bfc\u822a\u6df7\u4e71&#xff0c;\u4e5f\u4e3a\u540e\u7eed\u591a\u8bbe\u5907\u5e03\u5c40\u548c\u4e0a\u67b6\u7a33\u5b9a\u6027\u68c0\u67e5\u63d0\u4f9b\u66f4\u6e05\u6670\u7684\u6d4b\u8bd5\u8def\u5f84\u3002<\/p>\n<p>\u672c\u6587\u7684\u6587\u7ae0\u5c01\u9762\u4f7f\u7528\u672c\u7bc7\u72ec\u7acb media\/cover.png&#xff0c;\u5e94\u7528\u5408\u96c6\u5c01\u9762\u4f7f\u7528\u300c\u7b14\u4e0b\u751f\u8f89\u300d\u5e94\u7528\u7ea7 media\/collection-cover.png&#xff0c;\u4e24\u8005\u804c\u8d23\u4e0d\u540c&#xff1a;\u5408\u96c6\u5c01\u9762\u4fdd\u6301\u4e00\u4e2a\u8f6f\u4ef6\u4e00\u5f20\u56fa\u5b9a\u56fe&#xff0c;\u6587\u7ae0\u5c01\u9762\u9010\u7bc7\u533a\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;\u4e3b\u8981\u590d\u6838 entry\/src\/main\/ets\/pages\/Index.ets\u3001entry\/src\/main\/ets\/views\/HomePage.ets\u3001entry\/src\/main\/resources\/base\/profile\/main_pages.json&#xff0c;\u5e76\u7ed3\u5408 BankDetailPage.ets\u3001PracticePage.ets\u3001SearchPage.ets \u4e2d\u7684<\/p>\n","protected":false},"author":2,"featured_media":87860,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9949,9948,9950,4362,280],"topic":[],"class_list":["post-87863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-router","tag-9948","tag-9950","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\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \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\/87863.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\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \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;\u4e3b\u8981\u590d\u6838 entry\/src\/main\/ets\/pages\/Index.ets\u3001entry\/src\/main\/ets\/views\/HomePage.ets\u3001entry\/src\/main\/resources\/base\/profile\/main_pages.json&#xff0c;\u5e76\u7ed3\u5408 BankDetailPage.ets\u3001PracticePage.ets\u3001SearchPage.ets \u4e2d\u7684\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87863.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-30T17:24:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730172429-6a6b88cd7087f.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\/87863.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87863.html\",\"name\":\"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-30T17:24:32+00:00\",\"dateModified\":\"2026-07-30T17:24:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87863.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87863.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87863.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\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c\"}]},{\"@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\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \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\/87863.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \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;\u4e3b\u8981\u590d\u6838 entry\/src\/main\/ets\/pages\/Index.ets\u3001entry\/src\/main\/ets\/views\/HomePage.ets\u3001entry\/src\/main\/resources\/base\/profile\/main_pages.json&#xff0c;\u5e76\u7ed3\u5408 BankDetailPage.ets\u3001PracticePage.ets\u3001SearchPage.ets \u4e2d\u7684","og_url":"https:\/\/www.wsisp.com\/helps\/87863.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-30T17:24:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730172429-6a6b88cd7087f.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\/87863.html","url":"https:\/\/www.wsisp.com\/helps\/87863.html","name":"\u3010\u7b14\u4e0b\u751f\u8f89\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-30T17:24:32+00:00","dateModified":"2026-07-30T17:24:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87863.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87863.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87863.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\uff5c14\u3011HarmonyOS ArkTS \u4e3b\u5bfc\u822a\u5b9e\u6218\uff1a\u7edf\u4e00\u9875\u9762\u5165\u53e3\u3001\u8fd4\u56de\u8def\u5f84\u548c\u53c2\u6570\u6821\u9a8c"}]},{"@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\/87863","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=87863"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87863\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/87860"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87863"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}