提交 2734f523 编写于 作者: S shanghuanni

js-apis-hichecker中js示例改为ArkTS

Signed-off-by: Nshanghuanni <shanghuanni1@huawei.com>
上级 9125253c
...@@ -44,7 +44,6 @@ addCheckRule(rule: bigint): void ...@@ -44,7 +44,6 @@ addCheckRule(rule: bigint): void
**示例:** **示例:**
```ts ```ts
import hichecker from '@ohos.hichecker';
import { BusinessError } from '@ohos.base'; import { BusinessError } from '@ohos.base';
try { try {
...@@ -75,7 +74,6 @@ removeCheckRule(rule: bigint): void ...@@ -75,7 +74,6 @@ removeCheckRule(rule: bigint): void
**示例:** **示例:**
```ts ```ts
import hichecker from '@ohos.hichecker';
import { BusinessError } from '@ohos.base' import { BusinessError } from '@ohos.base'
try { try {
...@@ -112,7 +110,6 @@ containsCheckRule(rule: bigint): boolean ...@@ -112,7 +110,6 @@ containsCheckRule(rule: bigint): boolean
**示例:** **示例:**
```ts ```ts
import hichecker from '@ohos.hichecker';
import { BusinessError } from '@ohos.base' import { BusinessError } from '@ohos.base'
try { try {
...@@ -235,7 +232,7 @@ contains(rule: bigint): boolean ...@@ -235,7 +232,7 @@ contains(rule: bigint): boolean
**示例:** **示例:**
```ts ```js
// 添加一条规则 // 添加一条规则
hichecker.addRule(hichecker.RULE_THREAD_CHECK_SLOW_PROCESS); hichecker.addRule(hichecker.RULE_THREAD_CHECK_SLOW_PROCESS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册