ui-js-overview.md 1.6 KB
Newer Older
G
ge-yafang 已提交
1
# Overview
Z
zengyawen 已提交
2 3


G
ge-yafang 已提交
4
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.
Z
zengyawen 已提交
5 6


G
ge-yafang 已提交
7
## Overall Architecture
Z
zengyawen 已提交
8

G
ge-yafang 已提交
9
ArkUI with the JavaScript-based web-like development paradigm consists of the following layers: application layer, frontend framework layer, engine layer, and porting layer.
Z
zengyawen 已提交
10 11 12



G
ge-yafang 已提交
13
![en-us_image_0000001223127696](figures/en-us_image_0000001223127696.png)
Z
zengyawen 已提交
14

G
ge-yafang 已提交
15
- Application
Z
zengyawen 已提交
16

G
ge-yafang 已提交
17
  Contains applications with FAs you developed. The FA application in this document refers to the application with FAs developed using JavaScript. 
Z
zengyawen 已提交
18

G
ge-yafang 已提交
19
- Framework
Z
zengyawen 已提交
20

G
ge-yafang 已提交
21
  Parses UI pages and provides the Model-View-ViewModel (MVVM), page routing, custom components and more for front end development.
Z
zengyawen 已提交
22

G
ge-yafang 已提交
23
- Engine
Z
zengyawen 已提交
24

G
ge-yafang 已提交
25
  Accomplishes animation parsing, Document Object Model (DOM) building, layout computing, rendering command building and drawing, and event management.
Z
zengyawen 已提交
26

G
ge-yafang 已提交
27
- Porting Layer
Z
zengyawen 已提交
28

G
ge-yafang 已提交
29
  Abstracts the platform layer to provide abstract interfaces to connect to the platform. For example, event interconnection, rendering pipeline interconnection, and lifecycle interconnection.