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

update zh-cn/application-dev/quick-start/start-with-ets.md.

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 fce37c3f
......@@ -42,7 +42,7 @@
工程同步完成后,在“**Project**”窗口,点击“**entry &gt; src &gt; main &gt; ets &gt; MainAbility &gt; 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册