diff --git a/en/application-dev/quick-start/start-with-ets-low-code.md b/en/application-dev/quick-start/start-with-ets-low-code.md index 0c3e851c3912b2f768dceb2622c461ab919d946a..93012d0892f4022edfc5a2d7248b20bdb7cde32b 100644 --- a/en/application-dev/quick-start/start-with-ets-low-code.md +++ b/en/application-dev/quick-start/start-with-ets-low-code.md @@ -118,7 +118,7 @@ You can implement page redirection through the page router, which finds the targ - In the **index.ets** file: ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component @@ -131,7 +131,7 @@ You can implement page redirection through the page router, which finds the targ */ onclick() { router.push({ - uri: 'pages/second', // Specify the page to be redirected to. + url: 'pages/second', // Specify the page to be redirected to. }) } @@ -149,7 +149,7 @@ You can implement page redirection through the page router, which finds the targ - In the **second.ets** file: ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component diff --git a/en/application-dev/quick-start/start-with-ets.md b/en/application-dev/quick-start/start-with-ets.md index 792fb818ba2ca78cd3fa9e6acb111b89bf18a90c..4b1b29d0bcd6667010e19e3d6943f66fd6eb143f 100644 --- a/en/application-dev/quick-start/start-with-ets.md +++ b/en/application-dev/quick-start/start-with-ets.md @@ -153,7 +153,7 @@ You can implement page redirection through the page router, which finds the targ ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component @@ -181,7 +181,7 @@ You can implement page redirection through the page router, which finds the targ .height('5%') // Bind the onClick event to the Next button so that clicking the button redirects the user to the second page. .onClick(() => { - router.push({ uri: 'pages/second' }) + router.push({ url: 'pages/second' }) }) } .width('100%') @@ -196,7 +196,7 @@ You can implement page redirection through the page router, which finds the targ ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component diff --git a/en/application-dev/quick-start/start-with-js-low-code.md b/en/application-dev/quick-start/start-with-js-low-code.md index b46990dc8ee7b7e8a08da0745d5b62e90bf3fe59..e98d6aa349c420fb991a148322d136beb9bd6cba 100644 --- a/en/application-dev/quick-start/start-with-js-low-code.md +++ b/en/application-dev/quick-start/start-with-js-low-code.md @@ -104,12 +104,12 @@ You can implement page redirection through the [page router](../ui/ui-js-buildin - In the **index.js** file: ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { onclick() { router.push({ - uri:'pages/second/second', // Specify the page to be redirected to. + url:'pages/second/second', // Specify the page to be redirected to. }) } } @@ -127,7 +127,7 @@ You can implement page redirection through the [page router](../ui/ui-js-buildin - In the **second.js** file: ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { back() { diff --git a/en/application-dev/quick-start/start-with-js.md b/en/application-dev/quick-start/start-with-js.md index b2ad7acd9e16e6e0f667facc4e5608860f0853e2..ea838f782d3284793c704c1ba4ad4362ac08ad62 100644 --- a/en/application-dev/quick-start/start-with-js.md +++ b/en/application-dev/quick-start/start-with-js.md @@ -163,12 +163,12 @@ You can implement page redirection through the [page router](../ui/ui-js-buildin ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { onclick: function () { router.push({ - uri: "pages/second/second" + url: "pages/second/second" }) } } @@ -179,7 +179,7 @@ You can implement page redirection through the [page router](../ui/ui-js-buildin ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { back: function () { diff --git a/zh-cn/application-dev/ability/ability-brief.md b/zh-cn/application-dev/ability/ability-brief.md index 0f0d439389893952ac104a6cad59cb76c7f46b66..6c4c331d07ecdeea6eed376d436692410c227f9d 100644 --- a/zh-cn/application-dev/ability/ability-brief.md +++ b/zh-cn/application-dev/ability/ability-brief.md @@ -28,4 +28,7 @@ ![lifecycle](figures/lifecycle.png) -​ 两种模型的基本介绍,详见[FA模型综述](fa-brief.md)及[Stage模型综述](stage-brief.md)。 \ No newline at end of file +两种模型的基本介绍,详见[FA模型综述](fa-brief.md)及[Stage模型综述](stage-brief.md)。 +## 相关实例 +针对Ability开发,有以下相关实例可供参考: +- [Page内和Page间导航跳转](https://gitee.com/openharmony/codelabs/tree/master/Ability/PageAbility) \ No newline at end of file diff --git a/zh-cn/application-dev/ability/fa-brief.md b/zh-cn/application-dev/ability/fa-brief.md index eac6bffa2660e173c847c5304f76ba207afd0ace..c3c89aee8ed0c0e6dcc1ef14e7e131a7358e735d 100644 --- a/zh-cn/application-dev/ability/fa-brief.md +++ b/zh-cn/application-dev/ability/fa-brief.md @@ -32,4 +32,14 @@ Ability框架在API 8及更早版本使用FA模型。FA模型中Ability分为Pag ## 进程线程模型 应用独享独立进程,Ability独享独立线程,应用进程在Ability第一次启动时创建,并为启动的Ability创建线程,应用启动后再启动应用内其他Ability,会为每一个Ability创建相应的线程。每个Ability绑定一个独立的JSRuntime实例,因此Ability之间是隔离的。 -![fa-threading-nodel](figures/fa-threading-model.png) \ No newline at end of file +![fa-threading-nodel](figures/fa-threading-model.png) +## 相关实例 +针对Ability开发,有以下相关实例可供参考: +- [分布式调度启动远程FA](https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteStartFA) +- [分布式新闻客户端](https://gitee.com/openharmony/codelabs/tree/master/Distributed/NewsDemo) +- [分布式手写板(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/DistributeDatabaseDrawEts) +- [分布式鉴权(JS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/GameAuthOpenH) +- [分布式游戏手柄(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/HandleGameApplication) +- [分布式邮件(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OHMailETS) +- [分布式亲子早教系统(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OpenHarmonyPictureGame) +- [分布式遥控器(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteControllerETS) \ No newline at end of file diff --git a/zh-cn/application-dev/ability/fa-dataability.md b/zh-cn/application-dev/ability/fa-dataability.md index 682d23b1fadc33b85d7d7466e758ecf9ea9b38fd..627089036adcff07a0c70369d7134ef9185c85c2 100644 --- a/zh-cn/application-dev/ability/fa-dataability.md +++ b/zh-cn/application-dev/ability/fa-dataability.md @@ -272,14 +272,8 @@ Data提供方可以自定义数据的增、删、改、查,以及文件打开 ); ``` -## 开发实例 +## 相关实例 -针对dataAbility开发,有以下示例工程可供参考: +针对DataAbility开发,有以下相关实例可供参考: -- [DataAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/DataAbility) - -本示例DataAbility中: - -在DataAbility目录中的data.ts文件创建一个Data实例。 - -在MainAbility目录中封装了访问Data的流程。 +- [`DataAbility`:DataAbility的创建与访问(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/ability/DataAbility) diff --git a/zh-cn/application-dev/ability/fa-formability.md b/zh-cn/application-dev/ability/fa-formability.md index 198b262673a233a8b6ebc5c18f506f1c0b27f92b..41ed0fec0e7952625a2bf1ae578a6a5977f540a8 100644 --- a/zh-cn/application-dev/ability/fa-formability.md +++ b/zh-cn/application-dev/ability/fa-formability.md @@ -326,10 +326,8 @@ Form需要在应用配置文件config.json中进行配置。 ![fa-form-example](figures/fa-form-example.png) -## 开发实例 +## 相关实例 -针对FA模型卡片提供方的开发,有以下示例工程可供参考: - -[FormAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/FormAbility) - -本示例FormAbility提供了一张卡片。用户可以通过桌面或者自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。并且本示例通过轻量级数据存储实现了卡片信息的持久化。 \ No newline at end of file +针对FA模型卡片提供方的开发,有以下相关实例可供参考: +- [`FormAbility`:FA模型卡片(JS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/ability/FormAbility) +- [`FormLauncher`:卡片使用方(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/ability/FormLauncher) \ No newline at end of file diff --git a/zh-cn/application-dev/ability/fa-pageability.md b/zh-cn/application-dev/ability/fa-pageability.md index 890bd3d19976dcc0667dfcc34d6f20ed1dcb40ff..00f2d27b6bbe3276d64caa17d0252346a0d933d8 100644 --- a/zh-cn/application-dev/ability/fa-pageability.md +++ b/zh-cn/application-dev/ability/fa-pageability.md @@ -260,9 +260,6 @@ export default { }, } ``` -### 开发实例 -针对pageAbility开发,有以下示例工程可供参考: - -[DMS](https://gitee.com/openharmony/app_samples/tree/master/ability/DMS) - -在本示例中完整展示了启动本地Ability、启动远程Ability的使用方法。 \ No newline at end of file +## 相关实例 +针对PageAbility开发,有以下相关实例可供参考: +- [`DMS`:分布式Demo(eTS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/ability/DMS) \ No newline at end of file diff --git a/zh-cn/application-dev/ability/fa-serviceability.md b/zh-cn/application-dev/ability/fa-serviceability.md index cb7b9724b84822a1c2424f889104d62a37650c3c..f1406df29a6e9d2e38adbe1d7d06d84565cd8749 100644 --- a/zh-cn/application-dev/ability/fa-serviceability.md +++ b/zh-cn/application-dev/ability/fa-serviceability.md @@ -395,26 +395,8 @@ export default { }; ``` -## 开发实例 +## 相关实例 -### 针对serviceAbility开发,有以下示例工程可供参考: - -- [ServiceAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/ServiceAbility) - - -本示例ServiceAbility中: - -在ServiceAbility目录中的service.ts文件创建一个本地Service。 - -在MainAbility目录中封装了启动、连接本地Services的流程。 - - -### 针对跨设备serviceAbility开发,有以下示例工程可供参考: - -- [DMS](https://gitee.com/openharmony/app_samples/tree/master/ability/DMS) - -本示例DMS中: - -在ServiceAbility目录中的service.ts文件创建一个远程Service。 - -在RemoteAbility目录中封装了连接远程Services的流程。 +针对ServiceAbility开发,有以下相关实例可供参考: +- [`ServiceAbility`:ServiceAbility的创建与使用(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/ability/ServiceAbility) +- [`DMS`:分布式Demo(eTS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/ability/DMS) diff --git a/zh-cn/application-dev/ability/stage-ability.md b/zh-cn/application-dev/ability/stage-ability.md index 916a92343fce5c448857cecae45280b169bfe164..611df89dbaa971b89aaab5892eeac0bf8e7fe514 100644 --- a/zh-cn/application-dev/ability/stage-ability.md +++ b/zh-cn/application-dev/ability/stage-ability.md @@ -271,9 +271,6 @@ export default class MainAbility extends Ability { { } ``` -## 开发实例 -针对Stage模型Ability开发,有以下示例工程可供参考: - -[StageCallAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/StageCallAbility) - -本示例StageCallAbility中,在Application目录的AbilityStage.ts中实现AbilityStage的接口,在MainAbility目录实现Ability的接口并设置"pages/index"为Ability的页面,在CalleeAbility目录实现另一个Ability并设置"pages/second"为Ability的页面。支持MainAbility启动CalleeAbility。 +## 相关实例 +针对Stage模型Ability开发,有以下相关示例可供参考: +- [`StageCallAbility`:StageAbility的创建与使用(eTS)(API9)](https://gitee.com/openharmony/app_samples/tree/master/ability/StageCallAbility) diff --git a/zh-cn/application-dev/ability/stage-call.md b/zh-cn/application-dev/ability/stage-call.md index 6c613b1623258d28ca04cc6b534a19af41047beb..28aee6477f7272f44b2a229c66ff46488a125e35 100644 --- a/zh-cn/application-dev/ability/stage-call.md +++ b/zh-cn/application-dev/ability/stage-call.md @@ -242,9 +242,6 @@ try { } ``` -## 开发实例 -针对Stage模型本地Call功能开发,有以下示例工程可供参考: - -[StageCallAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/StageCallAbility) - -本示例StageCallAbility中,在Application目录的AbilityStage.ts中实现AbilityStage的接口,在MainAbility目录实现Ability的接口并设置"pages/index"为Ability的页面,在CalleeAbility目录实现Ability的接口、Callee被调用端,设置"pages/second"为Ability的页面。MainAbility作为调用端,CalleeAbility作为被调用端。MainAbility拉起CalleeAbility,获取Caller通信接口后,支持用户输入字符串,做序列化处理后传递给CalleeAbility处理,CalleeAbility根据收到的数据做页面刷新并返回结果给MainAbility。 +## 相关实例 +针对Stage模型本地Call功能开发,有以下相关实例可供参考: +- [`StageCallAbility`:StageAbility的创建与使用(eTS)(API9)](https://gitee.com/openharmony/app_samples/tree/master/ability/StageCallAbility) diff --git a/zh-cn/application-dev/ability/stage-formextension.md b/zh-cn/application-dev/ability/stage-formextension.md index 453dfd7d643efff4a6ac04bc6bc6ce874d6b46b8..d6977be8d4e88b1a33d01c416197a81959db4002 100644 --- a/zh-cn/application-dev/ability/stage-formextension.md +++ b/zh-cn/application-dev/ability/stage-formextension.md @@ -339,10 +339,7 @@ Form需要在应用配置文件module.json中进行配置。 ![fa-form-example](figures/fa-form-example.png) -## 开发实例 +## 相关实例 -针对Stage模型卡片提供方的开发,有以下示例工程可供参考: - -[FormExtAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/FormExtAbility) - -本示例FormExtAbility提供了一张卡片。用户可以通过桌面或者自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。并且本示例通过轻量级数据存储实现了卡片信息的持久化。 \ No newline at end of file +针对Stage模型卡片提供方的开发,有以下相关实例可供参考: +- [`FormExtAbility`:Stage模型卡片(eTS JS)(API9)](https://gitee.com/openharmony/app_samples/tree/master/ability/FormExtAbility) \ No newline at end of file diff --git a/zh-cn/application-dev/ability/stage-serviceextension.md b/zh-cn/application-dev/ability/stage-serviceextension.md index d320cbb8d6c9e84711644e8e00de1e82c72b73d7..4f8373993c89df651d6503354e7c01659198600a 100644 --- a/zh-cn/application-dev/ability/stage-serviceextension.md +++ b/zh-cn/application-dev/ability/stage-serviceextension.md @@ -76,12 +76,7 @@ ExtensionAbility,是Stage模型中新增的扩展组件的基类,一般用 }] ``` -## 开发实例 +## 相关实例 -针对ServiceExtensionAbility开发,有以下示例工程可供参考: - -- [ServiceExtensionAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/ServiceExtAbility) - -本示例ServiceExtensionAbility中: - -在ServiceExtensionAbility目录中的ServiceExtAbility.ts文件创建一个ServiceExtensionAbility实例。 +针对ServiceExtensionAbility开发,有以下相关实例可供参考: +- [`ServiceExtAbility`:StageAbility的创建与使用(eTS)(API9)](https://gitee.com/openharmony/app_samples/tree/master/ability/ServiceExtAbility) diff --git a/zh-cn/application-dev/database/database-mdds-guidelines.md b/zh-cn/application-dev/database/database-mdds-guidelines.md index 132176bdee91d4a7af7fc18ce844407b7711b33f..260f7c190ac075e90947d8f69bacc197a51785d9 100644 --- a/zh-cn/application-dev/database/database-mdds-guidelines.md +++ b/zh-cn/application-dev/database/database-mdds-guidelines.md @@ -172,3 +172,7 @@ OpenHarmony系统中的分布式数据服务模块为开发者提供下面几种 } kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000); ``` +## 相关实例 +针对分布式数据开发,有以下相关实例可供参考: +- [`KvStore`:分布式数据库(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/data/Kvstore) +- [分布式数据库](https://gitee.com/openharmony/codelabs/tree/master/Data/JsDistributedData) diff --git a/zh-cn/application-dev/database/database-preference-guidelines.md b/zh-cn/application-dev/database/database-preference-guidelines.md index d7f52402cce4f6a60a32d18b013d177c4c1a82bc..fd3310d65b91945cd0d1943ca4a4003fcc3c7c7d 100644 --- a/zh-cn/application-dev/database/database-preference-guidelines.md +++ b/zh-cn/application-dev/database/database-preference-guidelines.md @@ -161,4 +161,9 @@ console.info("Deleted successfully.") }).catch((err) => { console.info("Deleted failed with err: " + err)}) - ``` \ No newline at end of file + ``` +## 相关实例 +针对轻量级数据存储开发,有以下相关实例可供参考: +- [`LiteStorage`:轻量级存储(eTS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/data/LiteStorage) +- [轻量级偏好数据库](https://gitee.com/openharmony/codelabs/tree/master/Data/Database) +- [备忘录(eTS)](https://gitee.com/openharmony/codelabs/tree/master/Data/NotePad_OH_ETS) \ No newline at end of file diff --git a/zh-cn/application-dev/database/database-relational-guidelines.md b/zh-cn/application-dev/database/database-relational-guidelines.md index ad2d787866c3724c6c67025a2040f8f4a381dc3a..b19d8ee34c756531e51fa9c47a05ec39d00850ec 100644 --- a/zh-cn/application-dev/database/database-relational-guidelines.md +++ b/zh-cn/application-dev/database/database-relational-guidelines.md @@ -306,3 +306,7 @@ let tableName = rdbStore.obtainDistributedTableName(deviceId, "test"); let resultSet = rdbStore.querySql("SELECT * FROM " + tableName) ``` +## 相关实例 +针对关系型数据库开发,有以下相关实例可供参考: +- [`Rdb`:关系型数据库(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/data/Rdb) +- [关系型数据库](https://gitee.com/openharmony/codelabs/tree/master/Data/JSRelationshipData) diff --git a/zh-cn/application-dev/quick-start/start-with-ets-low-code.md b/zh-cn/application-dev/quick-start/start-with-ets-low-code.md index 286c6bc251795b6e7acda6248bb7d3e9d6443531..f95204d611a6724ba2e7068a76592f85bd6e435f 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets-low-code.md +++ b/zh-cn/application-dev/quick-start/start-with-ets-low-code.md @@ -120,7 +120,7 @@ OpenHarmony低代码开发方式具有丰富的UI界面编辑功能,通过可 - “**index.ets**”示例如下: ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component @@ -133,7 +133,7 @@ OpenHarmony低代码开发方式具有丰富的UI界面编辑功能,通过可 */ onclick() { router.push({ - uri: 'pages/second', // 指定要跳转的页面 + url: 'pages/second', // 指定要跳转的页面 }) } @@ -151,7 +151,7 @@ OpenHarmony低代码开发方式具有丰富的UI界面编辑功能,通过可 - “**second.ets**”示例如下: ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component diff --git a/zh-cn/application-dev/quick-start/start-with-ets.md b/zh-cn/application-dev/quick-start/start-with-ets.md index 36117d08dcafa46078fe0b5a30bab766cacd1d1d..9617e1b169ee6c3068a324b548408a2e7f38e5f2 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets.md +++ b/zh-cn/application-dev/quick-start/start-with-ets.md @@ -155,7 +155,7 @@ ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component @@ -183,7 +183,7 @@ .height('5%') // 跳转按钮绑定onClick事件,点击时跳转到第二页 .onClick(() => { - router.push({ uri: 'pages/second' }) + router.push({ url: 'pages/second' }) }) } .width('100%') @@ -198,7 +198,7 @@ ``` - import router from '@system.router'; + import router from '@ohos.router'; @Entry @Component diff --git a/zh-cn/application-dev/quick-start/start-with-js-low-code.md b/zh-cn/application-dev/quick-start/start-with-js-low-code.md index 99dd391db26ba7a3114825d5f4ce5f99de6413f2..fd4ffd4fa90daa2f7bd82a0119fc9a34b66198a7 100644 --- a/zh-cn/application-dev/quick-start/start-with-js-low-code.md +++ b/zh-cn/application-dev/quick-start/start-with-js-low-code.md @@ -107,12 +107,12 @@ OpenHarmony低代码开发方式具有丰富的UI界面编辑功能,通过可 - “**index.js**”示例如下: ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { onclick() { router.push({ - uri:'pages/second/second', // 指定要跳转的页面 + url:'pages/second/second', // 指定要跳转的页面 }) } } @@ -130,7 +130,7 @@ OpenHarmony低代码开发方式具有丰富的UI界面编辑功能,通过可 - “**second.js**”示例如下: ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { back() { diff --git a/zh-cn/application-dev/quick-start/start-with-js.md b/zh-cn/application-dev/quick-start/start-with-js.md index a31b66236e0450f8af1527b482f72767b15328e3..747a1cf585d10bfe62200d7b2bd9c265088cb11b 100644 --- a/zh-cn/application-dev/quick-start/start-with-js.md +++ b/zh-cn/application-dev/quick-start/start-with-js.md @@ -168,12 +168,12 @@ ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { onclick: function () { router.push({ - uri: "pages/second/second" + url: "pages/second/second" }) } } @@ -184,7 +184,7 @@ ``` - import router from '@system.router'; + import router from '@ohos.router'; export default { back: function () { @@ -210,3 +210,6 @@ ![zh-cn_image_0000001217527892](figures/zh-cn_image_0000001217527892.png) 恭喜您已经使用JS语言开发(传统代码方式)完成了第一个OpenHarmony应用,快来[探索更多的OpenHarmony功能](../application-dev-guide.md)吧。 +## 相关实例 +针对使用JS语言(传统代码方式)开发快速入门,有以下相关实例可供参考: +- [`JsHelloWorld`:你好世界(JS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/common/JsHelloWorld) diff --git a/zh-cn/application-dev/windowmanager/screenshot-guidelines.md b/zh-cn/application-dev/windowmanager/screenshot-guidelines.md index 0ed1eb14ff3a0ba00e8b64d40f3f6645d9f5a15f..749d93c7aafc2a69ab63484e2b85a65d9d36598d 100644 --- a/zh-cn/application-dev/windowmanager/screenshot-guidelines.md +++ b/zh-cn/application-dev/windowmanager/screenshot-guidelines.md @@ -35,4 +35,7 @@ screenshot.save(ScreenshotOptions).then((image) => { console.log('screenshot.save failed, error : ' + JSON.stringify(err)); }) ``` +## 相关实例 +针对屏幕截图开发,有以下相关实例可供参考: +- [`Screenshot`:基础功能-屏幕截图(eTS)(API8)](https://gitee.com/openharmony/app_samples/tree/master/Basic/Screenshot)