提交 07b00d23 编写于 作者: H HelloCrease

update ts template

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 2df5fa1e
...@@ -68,11 +68,13 @@ import Curves from '@ohos.curves' ...@@ -68,11 +68,13 @@ import Curves from '@ohos.curves'
> >
> 3.1 - 可选,若该模块的使用无需申请权限,则删除。 > 3.1 - 可选,若该模块的使用无需申请权限,则删除。
> >
> 3.2 - 描述清楚需要申请的权限名称,并给出对应的示例代码。 > 3.2 - 描述清楚需要申请的权限名称,并给出对应的示例代码,具体形式请参考[权限申请声明](../application-dev/security/accesstoken-guidelines.md)
示例: 示例:
使用网络图片时,需要在config.json或者module.json5<sup>9+</sup>对应的"abilities"中添加网络使用权限ohos.permission.INTERNET。 使用网络图片时,需要在config.json或者module.json5<sup>9+</sup>中添加网络使用权限ohos.permission.INTERNET。
module.json5文件示例:
``` ```
"abilities": [ "abilities": [
...@@ -333,6 +335,7 @@ patternLockController: PatternLockController = new PatternLockController() ...@@ -333,6 +335,7 @@ patternLockController: PatternLockController = new PatternLockController()
示例: 示例:
```ts ```ts
// xxx.ets
@Entry @Entry
@Component @Component
struct CheckboxExample { struct CheckboxExample {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册