diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md index c71b0bd271bf4ebd1a59bf8fb2dfc5c2a1baa418..359882ab4b4ae039f377dd2290f918fa809c4866 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegator.md @@ -622,6 +622,32 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { +### printSync + +printSync(msg: string): void + +打印日志信息到单元测试终端控制台 + +**系统能力:** SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ---------- | +| msg | string | 是 | 日志字符串 | + +**示例:** + +```js +var abilityDelegator; +var msg = "msg"; + +abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); +abilityDelegator.printSync(msg); +``` + + + ### print print(msg: string, callback: AsyncCallback\): void