From deb7b9bede9c1da7f2fbc56ccbd1772dec633ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Wed, 27 Apr 2022 09:57:58 +0000 Subject: [PATCH] update zh-cn/application-dev/quick-start/start-with-ets.md. Signed-off-by: @ge-yafang --- zh-cn/application-dev/quick-start/start-with-ets.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/quick-start/start-with-ets.md b/zh-cn/application-dev/quick-start/start-with-ets.md index 5eaab9344c..f7b2d9f26e 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets.md +++ b/zh-cn/application-dev/quick-start/start-with-ets.md @@ -42,7 +42,7 @@ 工程同步完成后,在“**Project**”窗口,点击“**entry > src > main > ets > MainAbility > pages**”,打开“**index.ets**”文件,可以看到页面由Text组件组成。“**index.ets**”文件的示例如下: - ```ts + ``` @Entry @Component struct Index { @@ -66,7 +66,7 @@ 在默认页面基础上,我们添加一个Button组件,作为按钮接受用户点击的动作,从而实现跳转到另一个页面。“**index.ets**”文件的示例如下: - ```ts + ``` @Entry @Component struct Index { @@ -115,7 +115,7 @@ 参照第一个页面,在第二个页面添加Text组件、Button组件等,并设置其样式。“**second.ets**”文件的示例如下: - ```ts + ``` @Entry @Component struct Second { @@ -156,7 +156,7 @@ 在第一个页面中,跳转按钮绑定onClick事件,点击按钮时跳转到第二页。“**index.ets**”文件的示例如下: - ```ts + ``` import router from '@ohos.router'; @Entry @@ -199,7 +199,7 @@ 在第二个页面中,返回按钮绑定onClick事件,点击按钮时返回到第一页。“**second.ets**”文件的示例如下: - ```ts + ``` import router from '@ohos.router'; @Entry -- GitLab