提交 680e7a11 编写于 作者: S shanghuanni

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

Signed-off-by: Nshanghuanni <shanghuanni1@huawei.com>
上级 2734f523
......@@ -120,7 +120,7 @@ try {
hichecker.containsCheckRule(hichecker.RULE_THREAD_CHECK_SLOW_PROCESS); // return true;
hichecker.containsCheckRule(hichecker.RULE_CAUTION_PRINT_LOG); // return false;
} catch (err) {
console.error(`code: ${err.code}, message: ${err.message}`);
console.error(`code: ${(err as BusinessError).code}, message: ${(err as BusinessError).message}`);
}
```
......@@ -232,7 +232,7 @@ contains(rule: bigint): boolean
**示例:**
```js
```ts
// 添加一条规则
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.
先完成此消息的编辑!
想要评论请 注册