| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 22-Oct-2025 | - | 40 | 39 | ||
| entry/ | 22-Oct-2025 | - | 722 | 589 | ||
| hvigor/ | 22-Oct-2025 | - | 38 | 37 | ||
| screenshots/ | 22-Oct-2025 | - | ||||
| .gitignore | D | 22-Oct-2025 | 133 | 12 | 12 | |
| README.md | D | 22-Oct-2025 | 2.4 KiB | 71 | 51 | |
| build-profile.json5 | D | 22-Oct-2025 | 1.4 KiB | 58 | 57 | |
| code-linter.json5 | D | 22-Oct-2025 | 1.4 KiB | 47 | 46 | |
| hvigorfile.ts | D | 22-Oct-2025 | 836 | 21 | 5 | |
| oh-package.json5 | D | 22-Oct-2025 | 808 | 25 | 24 | |
| ohosTest.md | D | 22-Oct-2025 | 659 | 8 | 6 |
README.md
1# Node-API常见问题 2 3### 介绍 4 5本工程展示了napi_wrap如何保证被wrap的对象按期望顺序析构。详细描述可查如下链接。 6 7- [常见基本功能问题汇总](https://gitcode.com/openharmony/docs/blob/master/zh-cn/application-dev/napi/napi-faq-about-common-basic.md) 8 9### 效果预览 10 11| 首页 | 执行及结果即时反馈 | 12| :-------------------------------------------------------------: |:---------------------------------------------------------------------:| 13| <img src="./screenshots/NodeAPIDeconstructInOrder_1.png" style="zoom:33%;" width="360;" /> | <img src="./screenshots/NodeAPIDeconstructInOrder_2.png" style="zoom:33%;" width="360;" /> | 14 15### 使用说明 16 171. 在主界面,可以点击Hello World,开始执行。 182. 执行结果会即时反馈在屏幕中央,并在控制台打印log。 19 20### 工程目录 21 22``` 23entry/src/ 24 ├── main 25 │ ├── cpp 26 │ │ ├── types 27 │ │ │ └── libentry 28 │ │ ├── CMakeLists.txt 29 │ │ ├── napi_init.cpp // 系统模块加载 30 │ ├── ets 31 │ │ ├── entryability 32 │ │ ├── entrybackupability 33 │ │ └── pages 34 │ │ └── Index.ets // 加载模块 35 │ ├── module.json5 36 │ └── resources 37 ├── ohosTest 38 │ ├── ets 39 │ │ └── test 40 │ │ ├── Ability.test.ets 41 │ │ ├── List.test.ets 42 │ │ └── NodeAPIDeconstructInOrder.test.ets // 自动化测试代码 43``` 44 45### 相关权限 46 47不涉及。 48 49### 依赖 50 51不涉及。 52 53### 约束与限制 54 551.本示例仅支持标准系统上运行, 支持设备:RK3568。 56 572.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.40,镜像版本号:OpenHarmony_6.0.0.40。 58 593.本示例需要使用DevEco Studio 5.1.1 Release (Build Version: 5.1.1.820, built on June 28, 2025)及以上版本才可编译运行。。 60 61### 下载 62 63如需单独下载本工程,执行如下命令: 64 65``` 66git init 67git config core.sparsecheckout true 68echo code/DocsSample/ArkTS/NodeAPI/NodeAPIFaqs/NodeAPIDeconstructInOrder > .git/info/sparse-checkout 69git remote add origin https://gitcode.com/openharmony/applications_app_samples.git 70git pull origin master 71```