diff --git a/zh-cn/application-dev/reference/apis/js-apis-featureAbility.md b/zh-cn/application-dev/reference/apis/js-apis-featureAbility.md index da0b5ea904f03fd13c5a39a04654d2c03560cdc9..c835160acbbd11c07a24985a49fb4887d67690e9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-featureAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-featureAbility.md @@ -271,8 +271,8 @@ featureAbility.terminateSelfWithResult( } }, }, - (err, data) => { - console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)) + (err) => { + console.info("err: " + JSON.stringify(err)) } ); ``` @@ -470,8 +470,8 @@ terminateSelf(callback: AsyncCallback\): void ```javascript import featureAbility from '@ohos.ability.featureAbility'; featureAbility.terminateSelf( - (err, data) => { - console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)) + (err) => { + console.info("err: " + JSON.stringify(err)) } ) ``` @@ -601,8 +601,8 @@ var connId = featureAbility.connectAbility( }, ); var result = featureAbility.disconnectAbility(connId, - (error, data) => { - console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code + " data: " + data) + (error) => { + console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code) }, ); ```