1 Star 0 Fork 5.2K

丛林 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ui-js-overview.md 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
ester.zhou 提交于 2022-05-09 18:00 . update docs

Overview

The web-like development paradigm uses the classical three-stage programming model, in which OpenHarmony Markup Language (HML) is used for building layouts, CSS for defining styles, and JavaScript for adding processing logic. UI components are associated with data through one-way data-binding. This means that when data changes, the UI automatically updates with the new data. This development paradigm has a low learning curve for frontend web developers, allowing them to quickly transform existing web applications into ArkUI applications. It could be helpful if you are developing small- and medium-sized applications with simple UIs.

For details about the components, see Component Reference (JavaScript-based Web-like Development Paradigm).

Overall Architecture

ArkUI with the JavaScript-based web-like development paradigm consists of the following layers: application layer, frontend framework layer, engine layer, and porting layer.

en-us_image_0000001223127696

  • Application

    Contains applications with FAs you developed. The FA application in this document refers to the application with FAs developed using JavaScript.

  • Framework

    Parses UI pages and provides the Model-View-ViewModel (MVVM), page routing, custom components and more for front end development.

  • Engine

    Accomplishes animation parsing, Document Object Model (DOM) building, layout computing, rendering command building and drawing, and event management.

  • Porting Layer

    Abstracts the platform layer to provide abstract interfaces to connect to the platform. For example, event interconnection, rendering pipeline interconnection, and lifecycle interconnection.

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

搜索帮助