{"id":5034,"date":"2024-08-02T15:45:54","date_gmt":"2024-08-02T07:45:54","guid":{"rendered":"https:\/\/www.ddddrama.top\/?p=5034"},"modified":"2024-08-02T15:50:01","modified_gmt":"2024-08-02T07:50:01","slug":"codelabs","status":"publish","type":"post","link":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/","title":{"rendered":"Codelabs"},"content":{"rendered":"<blockquote>\n<p><a href=\"https:\/\/developer.huawei.com\/consumer\/cn\/codelabsPortal\/serviceTypes\/43\">Codelabs<\/a> \u662f\u534e\u4e3a\u5f00\u53d1\u8005\u5b66\u5802\u63d0\u4f9b\u7684\u6559\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u6848\u4f8b\u5b66\u4e60\u9e3f\u8499\u5f00\u53d1<\/p>\n<p>\u672c\u7bc7\u662f\u672c\u4eba Codelabs \u5b66\u4e60\u8bb0\u5f55<\/p>\n<\/blockquote>\n<h2>\u5f85\u529e\u5217\u8868<\/h2>\n<p><a href=\"https:\/\/developer.huawei.com\/consumer\/cn\/codelabsPortal\/carddetails\/tutorials_NEXT-ToDoListArkTS\">\u5f85\u529e\u5217\u8868 (huawei.com)<\/a><\/p>\n<h3>\u4ee3\u7801\u7ed3\u6784<\/h3>\n<pre><code class=\"language-typescript\">\u251c\u2500\u2500entry\/src\/main\/ets                   \/\/ ArkTS\u4ee3\u7801\u533a\n\u2502  \u251c\u2500\u2500common\n\u2502  \u2502  \u2514\u2500\u2500constants\n\u2502  \u2502     \u2514\u2500\u2500CommonConstants.ets         \/\/ \u516c\u5171\u5e38\u91cf\u7c7b\n\u2502  \u251c\u2500\u2500entryability\n\u2502  \u2502  \u2514\u2500\u2500EntryAbility.ets               \/\/ \u7a0b\u5e8f\u5165\u53e3\u7c7b\n\u2502  \u251c\u2500\u2500pages\n\u2502  \u2502  \u2514\u2500\u2500ToDoListPage.ets               \/\/ \u4e3b\u9875\u9762\n\u2502  \u251c\u2500\u2500view\n\u2502  \u2502  \u2514\u2500\u2500ToDoItem.ets                   \/\/ \u81ea\u5b9a\u4e49\u5355\u9879\u5f85\u529e\u7ec4\u4ef6\n\u2502  \u2514\u2500\u2500viewmodel\n\u2502     \u2514\u2500\u2500DataModel.ets                  \/\/ \u5217\u8868\u6570\u636e\u83b7\u53d6\u6587\u4ef6\n\u2514\u2500\u2500entry\/src\/main\/resources         \/\/ \u8d44\u6e90\u6587\u4ef6\u76ee\u5f55<\/code><\/pre>\n<h3>\u5b9e\u73b0\u8fc7\u7a0b<\/h3>\n<p>\u6559\u7a0b\u6e90\u7801\u4e2d\u5c06\u516c\u5171\u6837\u5f0f\u5e38\u91cf\uff08\u5982\u5916\u8fb9\u8ddd\u3001\u8fb9\u6846\u5706\u89d2\u3001\u884c\u9ad8\uff09\u7edf\u4e00\u653e\u5728\u4e86 <code>common\\constants\\CommonConstants.ets<\/code> \u4e2d\u8fdb\u884c\u8c03\u7528\uff0c\u5728\u8fd9\u91cc\u6211\u4eec\u7701\u7565\u8fd9\u4e00\u6b65\u3002<\/p>\n<h4>\u81ea\u5b9a\u4e49\u5355\u9879\u5f85\u529e\u7ec4\u4ef6 | ToDoItem.ets<\/h4>\n<p><code>view\\ToDoItem.ets<\/code> <\/p>\n<pre><code class=\"language-typescript\">@Component\nexport default struct ToDoItem { \/\/ export default \u9ed8\u8ba4\u5bfc\u51fa\n  private content?: string;\n\n  \/\/ \u4f7f\u7528 @State \u4fee\u9970\u53c2\u6570 isComplete \u6765\u7ba1\u7406\u5f53\u524d\u4e8b\u9879\u7684\u5b8c\u6210\u72b6\u6001\n  @State isComplete: boolean = false;\n\n  \/\/ \u53ef\u590d\u7528\u7684\u52fe\u9009\u56fe\u6807\u5143\u7d20, \u4f7f\u7528 @Builder \u6240\u88c5\u9970\u7684\u51fd\u6570, \u5373\u81ea\u5b9a\u4e49\u6784\u5efa\u51fd\u6570\n  @Builder labelIcon(icon: Resource) {\n    Image(icon)\n      .objectFit(ImageFit.Contain) \/\/ \u8bbe\u7f6e\u56fe\u7247\u586b\u5145\u6548\u679c\u4e3a Contain, \u5373\u56fe\u7247\u5b8c\u5168\u663e\u793a\u5728\u663e\u793a\u8fb9\u754c\u5185\n      .width(&#039;28vp&#039;)\n      .height(&#039;28vp&#039;)\n      .margin(&#039;20vp&#039;)\n  }\n\n  build() {\n    \/\/ \u6cbf\u6c34\u5e73\u65b9\u5411\u5e03\u5c40\u5bb9\u5668 Row\n    Row() {\n      \/\/ if\/else \u6e32\u67d3 labelIcon\n      if (this.isComplete) {\n        this.labelIcon($r(&#039;app.media.ic_ok&#039;)) \/\/ app.media \u6307\u5411 \\resources\\base\\media\n      } else {\n        this.labelIcon($r(&#039;app.media.ic_default&#039;))\n      }\n      \/\/ \u6587\u672c\n      Text(this.content)\n        .fontSize(&#039;20fp&#039;)\n        .fontWeight(500)\n        \/\/ \u8bbe\u7f6e\u900f\u660e\u5ea6\n        .opacity(this.isComplete ? 0.4 :1)\n        \/\/ \u8bbe\u7f6e\u6587\u672c\u88c5\u9970\u7ebf\u6837\u5f0f, \u5f53 isComplete \u4e3a true \u65f6\u8bbe\u7f6e\u4e3a\u7a7f\u8fc7\u6587\u672c\u7684\u4fee\u9970\u7ebf\n        .decoration({ type: this.isComplete ? TextDecorationType.LineThrough : TextDecorationType.None})\n    }\n    \/\/ \u8bbe\u7f6e\u8fb9\u6846\u5706\u89d2\n    .borderRadius(24)\n    \/\/ \u80cc\u666f\u989c\u8272\n    .backgroundColor(&#039;#FFFFFF&#039;)\n    .width(&#039;93.3%&#039;)\n    .height(&#039;64vp&#039;)\n    \/\/ \u8bbe\u7f6e\u70b9\u51fb\u4e8b\u4ef6, \u66f4\u6539 isComplete \u771f\u503c\n    .onClick(() =&gt; {\n      this.isComplete = !this.isComplete;\n    })\n  }\n}<\/code><\/pre>\n<h4>\u4e3b\u9875\u9762 | ToDoListPage.ets<\/h4>\n<p><code>pages\\ToDoListPage.ets<\/code> \uff0c\u5c06\u539f\u6709\u7684 <code>index.ets<\/code> \u6539\u540d\uff0c<\/p>\n<p>\u7136\u540e\u5c06 <code>entryability\\EntryAbility.ets<\/code> \u4e2d <code>windowStage.loadContent<\/code> \u65b9\u6cd5\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u4fee\u6539\u4e3a<code>pages\/ToDoListPage<\/code>\uff0c\u5373\uff1a<\/p>\n<pre><code class=\"language-typescript\">onWindowStageCreate(windowStage: window.WindowStage): void {\n    \/\/ ...\n    windowStage.loadContent(&#039;pages\/ToDoListPage&#039;, (err) =&gt; {\n      \/\/ ...\n    });\n  }<\/code><\/pre>\n<p>\u8be5\u53c2\u6570\u6307\u5b9a\u542f\u52a8\u9875\u9762\u3002<\/p>\n<p>\u5176\u4e2d <code>ToDoListPage.ets<\/code>:<\/p>\n<pre><code class=\"language-typescript\">\/\/ \u5bfc\u5165 ToDoItem \u5b50\u7ec4\u4ef6\nimport ToDoItem from &#039;..\/view\/ToDoItem&#039;\n\n@Entry\n@Component\n@Preview\nstruct ToDoListPage {\n  \/\/ \u5f85\u529e\u4efb\u52a1\u6570\u7ec4\n  private totalTasks: Array&lt;string&gt; = [];\n\n  \/\/ \u5728 aboutToAppear \u51fd\u6570\u4e2d\u6539\u53d8\u72b6\u6001\u53d8\u91cf, \u66f4\u6539\u5c06\u5728\u540e\u7eed\u6267\u884c build() \u51fd\u6570\u4e2d\u751f\u6548\u3002\n  \/\/ \u5728\u8fd9\u6211\u4eec\u8df3\u8fc7\u8bf7\u6c42\u6570\u636e\u7684\u6b65\u9aa4, \u76f4\u63a5\u5199\u5165\u503c\n  aboutToAppear(): void {\n    this.totalTasks = [\n      &quot;\u65e9\u8d77\u6668\u7ec3&quot;,\n      &quot;\u51c6\u5907\u65e9\u9910&quot;,\n      &quot;\u9605\u8bfb\u540d\u8457&quot;,\n      &quot;\u5b66\u4e60ArkTS&quot;,\n      &quot;\u770b\u5267\u653e\u677e&quot;\n    ];\n  }\n\n  build() {\n    \/\/ \u6cbf\u5782\u76f4\u65b9\u5411\u5e03\u5c40\u7684\u5bb9\u5668 Column\n    \/\/ \u5176\u4e2d space \u53c2\u6570\u4e3a\u7eb5\u5411\u5e03\u5c40\u5143\u7d20\u7684\u5782\u76f4\u65b9\u5411\u95f4\u8ddd\u3002\n    Column({ space: 16 }) {\n      \/\/ \u6807\u9898\n      Text(&#039;\u5f85\u529e&#039;)\n        .fontSize(&#039;28fp&#039;)\n        .fontWeight(FontWeight.Bold)\n        .lineHeight(&#039;33vp&#039;) \/\/ \u884c\u9ad8\n        .width(&#039;80%&#039;)\n        \/\/ \u5916\u8fb9\u8ddd\n        .margin({\n          top: &#039;24vp&#039;,\n          bottom: &#039;12vp&#039;\n        })\n        \/\/ \u6587\u672c\u5de6\u5bf9\u9f50\n        .textAlign(TextAlign.Start)\n\n      \/\/ \u5faa\u73af\u6e32\u67d3 ToDoItem \u7ec4\u4ef6, \u5176\u4e2d\u53c2\u6570\u5206\u522b\u4e3a\u6570\u636e\u6e90, \u7ec4\u4ef6\u751f\u6210\u51fd\u6570, \u952e\u503c\u751f\u6210\u51fd\u6570(\u53ef\u9009)\n      ForEach(this.totalTasks, (item: string) =&gt; {\n        ToDoItem({ content: item })\n      }, (item: string) =&gt; JSON.stringify(item))\n    }\n    .width(&#039;100%&#039;)\n    .height(&#039;100%&#039;)\n    .backgroundColor(&#039;#F1F3F5&#039;)\n  }\n}<\/code><\/pre>\n<h3>\u8fd0\u884c\u6548\u679c<\/h3>\n<p>\u6765\u81ea\u9e3f\u8499\u6a21\u62df\u5668\uff08HarmonyOS Emulator\uff09Beta\uff0cHarmonyOS NEXT Developer Beta2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\"  \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codelabs \u662f\u534e\u4e3a\u5f00\u53d1\u8005\u5b66\u5802\u63d0\u4f9b\u7684\u6559\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u6848\u4f8b\u5b66\u4e60\u9e3f\u8499\u5f00\u53d1 \u672c\u7bc7\u662f\u672c\u4eba Codelabs \u5b66\u4e60 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[12,9],"tags":[],"class_list":["post-5034","post","type-post","status-publish","format-standard","hentry","category-harmonyos","category-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Codelabs - Drama&#039;s Blog<\/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.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Codelabs - Drama&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Codelabs \u662f\u534e\u4e3a\u5f00\u53d1\u8005\u5b66\u5802\u63d0\u4f9b\u7684\u6559\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u6848\u4f8b\u5b66\u4e60\u9e3f\u8499\u5f00\u53d1 \u672c\u7bc7\u662f\u672c\u4eba Codelabs \u5b66\u4e60 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\" \/>\n<meta property=\"og:site_name\" content=\"Drama&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-02T07:45:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-02T07:50:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\" \/>\n<meta name=\"author\" content=\"Drama\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Drama\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\"},\"author\":{\"name\":\"Drama\",\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0\"},\"headline\":\"Codelabs\",\"datePublished\":\"2024-08-02T07:45:54+00:00\",\"dateModified\":\"2024-08-02T07:50:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\"},\"wordCount\":16,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0\"},\"image\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\",\"articleSection\":[\"HarmonyOS\",\"\u5b66\u4e60\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\",\"url\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\",\"name\":\"Codelabs - Drama&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.ddddrama.top\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\",\"datePublished\":\"2024-08-02T07:45:54+00:00\",\"dateModified\":\"2024-08-02T07:50:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage\",\"url\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\",\"contentUrl\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg\",\"width\":441,\"height\":951},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.ddddrama.top\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Codelabs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ddddrama.top\/#website\",\"url\":\"https:\/\/www.ddddrama.top\/\",\"name\":\"Drama\u2018s Blog\",\"description\":\"Make it Possible\",\"publisher\":{\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ddddrama.top\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0\",\"name\":\"Drama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2023\/12\/Drama-scaled.webp\",\"contentUrl\":\"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2023\/12\/Drama-scaled.webp\",\"width\":2560,\"height\":443,\"caption\":\"Drama\"},\"logo\":{\"@id\":\"https:\/\/www.ddddrama.top\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/www.ddddrama.top\/\"],\"url\":\"https:\/\/www.ddddrama.top\/index.php\/author\/drama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Codelabs - Drama&#039;s Blog","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.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/","og_locale":"zh_CN","og_type":"article","og_title":"Codelabs - Drama&#039;s Blog","og_description":"Codelabs \u662f\u534e\u4e3a\u5f00\u53d1\u8005\u5b66\u5802\u63d0\u4f9b\u7684\u6559\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u6848\u4f8b\u5b66\u4e60\u9e3f\u8499\u5f00\u53d1 \u672c\u7bc7\u662f\u672c\u4eba Codelabs \u5b66\u4e60 [&hellip;]","og_url":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/","og_site_name":"Drama&#039;s Blog","article_published_time":"2024-08-02T07:45:54+00:00","article_modified_time":"2024-08-02T07:50:01+00:00","og_image":[{"url":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg"}],"author":"Drama","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Drama","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#article","isPartOf":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/"},"author":{"name":"Drama","@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0"},"headline":"Codelabs","datePublished":"2024-08-02T07:45:54+00:00","dateModified":"2024-08-02T07:50:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/"},"wordCount":16,"commentCount":0,"publisher":{"@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0"},"image":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg","articleSection":["HarmonyOS","\u5b66\u4e60"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/","url":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/","name":"Codelabs - Drama&#039;s Blog","isPartOf":{"@id":"https:\/\/www.ddddrama.top\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage"},"image":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg","datePublished":"2024-08-02T07:45:54+00:00","dateModified":"2024-08-02T07:50:01+00:00","breadcrumb":{"@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#primaryimage","url":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg","contentUrl":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2024\/08\/Snipaste_2024-08-02_15-43-51.jpg","width":441,"height":951},{"@type":"BreadcrumbList","@id":"https:\/\/www.ddddrama.top\/index.php\/2024\/08\/02\/codelabs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.ddddrama.top\/"},{"@type":"ListItem","position":2,"name":"Codelabs"}]},{"@type":"WebSite","@id":"https:\/\/www.ddddrama.top\/#website","url":"https:\/\/www.ddddrama.top\/","name":"Drama\u2018s Blog","description":"Make it Possible","publisher":{"@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ddddrama.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/ad8e98934ba5081a49853d6b020f6fb0","name":"Drama","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/image\/","url":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2023\/12\/Drama-scaled.webp","contentUrl":"https:\/\/www.ddddrama.top\/wp-content\/uploads\/2023\/12\/Drama-scaled.webp","width":2560,"height":443,"caption":"Drama"},"logo":{"@id":"https:\/\/www.ddddrama.top\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.ddddrama.top\/"],"url":"https:\/\/www.ddddrama.top\/index.php\/author\/drama\/"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Drama","author_link":"https:\/\/www.ddddrama.top\/index.php\/author\/drama\/"},"uagb_comment_info":2,"uagb_excerpt":"Codelabs \u662f\u534e\u4e3a\u5f00\u53d1\u8005\u5b66\u5802\u63d0\u4f9b\u7684\u6559\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u6848\u4f8b\u5b66\u4e60\u9e3f\u8499\u5f00\u53d1 \u672c\u7bc7\u662f\u672c\u4eba Codelabs \u5b66\u4e60&hellip;","_links":{"self":[{"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/posts\/5034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/comments?post=5034"}],"version-history":[{"count":8,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/posts\/5034\/revisions"}],"predecessor-version":[{"id":5047,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/posts\/5034\/revisions\/5047"}],"wp:attachment":[{"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/media?parent=5034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/categories?post=5034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ddddrama.top\/index.php\/wp-json\/wp\/v2\/tags?post=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}