1 Star 0 Fork 5K

Sharlen / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
adding-pages.md 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

Adding Pages

Creating the Home Page

Upon creation of the project, the index page is automatically generated, which is the home page of AirQuality. Figure 1 shows the project directory.

Figure 1 Project directory

Creating the Details Page

To the details page, perform the following steps:

  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 is created. It 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/sharlen/docs.git
git@gitee.com:sharlen/docs.git
sharlen
docs
docs
master

搜索帮助