1 Star 0 Fork 5.3K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
adding-pages.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-10 10:03 . update docs

Adding Pages

Creating the Home Page

After the project is created, the index page is generated by default. The following figure shows the project directory.

Figure 1 Project directory

Creating Detail and History Pages

Perform the following steps twice to create the rest two pages:

  1. Right-click pages and choose New > JS Page from the shortcut menu.

    Figure 2 Adding a page

  2. Enter the page name.

    Figure 3 Entering the page name

  3. Confirm the creation.

    The following figure shows the application project directory after the detail page and history page are created. Each page contains a .hml layout file, a .css file, and a .js file (containing service logic code).

    Figure 4 Complete project directory

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助