openharmony_ci 548d86c85b !294 【挑单】2.2-Beta-支持加载框架外的系统内置module(不需import)
Merge pull request !294 from piggyguy_jdx/2.2-Beta-support-extra-preset-modules-loading
2021-08-12 02:27:58 +00:00
2020-09-08 10:21:39 +08:00
2021-04-30 18:15:21 +08:00
2021-03-11 18:40:44 +08:00
2021-06-11 10:25:37 +08:00
2021-03-31 19:05:24 +08:00
2020-09-08 10:21:39 +08:00
2021-03-15 19:42:21 +08:00
2021-03-15 19:42:21 +08:00

JS Application Framework

Introduction

The JS application framework is provided for you to develop OpenHarmony JavaScript applications. The following figure shows the framework architecture.

Figure 1 Framework architecture

The JS application framework consists of the JavaScript data binding framework, JavaScript runtime, and JavaScript framework.

  • JavaScript data binding

    Provides a set of basic data binding capabilities through JavaScript.

  • JavaScript runtime

    Supports parsing and execution of JavaScript code.

  • JavaScript framework

    Provides the framework mechanism of JavaScript APIs and components through the C++ language.

Directory Structure

The source code of the framework is stored in /foundation/ace/ace_engine_lite. The directory structure is as follows:

/foundation/ace/ace_engine_lite
├── frameworks      # Framework code
│   ├── examples    # Sample code
│   ├── include     # Header files
│   ├── packages    # JavaScript implementation
│   ├── src         # Source code
│   ├── targets     # Configuration files of target devices
│   └── tools       # Tool code
├── interfaces      # APIs exposed externally
│   └── innerkits   # Header files for internal subsystems
│       └── builtin # JavaScript third-party module APIs exposed by the JS application framework
└── test            # Test cases

Available APIs

For details about the APIs, see the JS Application Development.

Usage

For details, go to the readme repository:

https://gitee.com/openharmony/docs/blob/master/en/readme/js-application-framework.md

Repositories Involved

ace_engine_lite

S
Description
JS lite framework | 轻量级JS核心开发框架
Readme 17 MiB
Languages
C++ 71.4%
JavaScript 15.6%
CSS 10.2%
C 1.6%
QMake 0.5%
Other 0.6%