未验证 提交 4ccf5e65 编写于 作者: 葛亚芳 提交者: Gitee

update en/application-dev/quick-start/start-with-ets-low-code.md.

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 58394532
...@@ -94,7 +94,8 @@ Add **Column**, **Text**, and **Button** components to the first page. A column ...@@ -94,7 +94,8 @@ Add **Column**, **Text**, and **Button** components to the first page. A column
4. Add a **Text** component. 4. Add a **Text** component.
- In the **second.ets** file, set the message text content to **Hi there**. The sample code is as follows: - In the **second.ets** file, set the message text content to **Hi there**. The sample code is as follows:
``` ```ts
// second.ets
@Entry @Entry
@Component @Component
struct Second { struct Second {
...@@ -130,7 +131,8 @@ You can implement page redirection through the page router, which finds the targ ...@@ -130,7 +131,8 @@ You can implement page redirection through the page router, which finds the targ
- In the **index.ets** file: - In the **index.ets** file:
``` ```ts
// index.ets
import router from '@ohos.router'; import router from '@ohos.router';
@Entry @Entry
...@@ -163,7 +165,8 @@ You can implement page redirection through the page router, which finds the targ ...@@ -163,7 +165,8 @@ You can implement page redirection through the page router, which finds the targ
- In the **second.ets** file: - In the **second.ets** file:
``` ```ts
// second.ets
import router from '@ohos.router'; import router from '@ohos.router';
@Entry @Entry
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册