diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md index af31fca7a6ecb076efbfc12b2d240415dd7a71d5..0dcb39397c41e3063ff5934f98b1a6e3473c443f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md @@ -635,7 +635,6 @@ attributeNames\(): Promise\>; **示例:** ```ts -let rootElement; let attributeNames; rootElement.attributeNames().then((data) => { console.log('get attribute names success'); @@ -661,7 +660,6 @@ attributeNames\(callback: AsyncCallback\ **示例:** ```ts -let rootElement; let attributeNames; rootElement.attributeNames((err, data) => { if (err) { @@ -705,7 +703,6 @@ attributeValue\(attributeName: T): Promi ```ts let attributeName = 'name'; let attributeValue; -let rootElement; try { rootElement.attributeValue(attributeName).then((data) => { console.log('get attribute value by name success'); @@ -744,7 +741,6 @@ attributeValue\(attributeName: T, **示例:** ```ts -let rootElement; let attributeValue; let attributeName = 'name'; try { @@ -777,7 +773,6 @@ actionNames(): Promise\>; **示例:** ```ts -let rootElement; let actionNames; rootElement.actionNames().then((data) => { console.log('get action names success'); @@ -803,7 +798,6 @@ actionNames(callback: AsyncCallback\>): void; **示例:** ```ts -let rootElement; let actionNames; rootElement.actionNames((err, data) => { if (err) { @@ -846,7 +840,6 @@ performAction(actionName: string, parameters?: object): Promise\; **示例:** ```ts -let rootElement; try { rootElement.performAction('action').then((data) => { console.info('perform action success'); @@ -883,7 +876,6 @@ performAction(actionName: string, callback: AsyncCallback\): void; **示例:** ```ts -let rootElement; try { rootElement.performAction('action', (err, data) => { if (err) { @@ -923,7 +915,6 @@ performAction(actionName: string, parameters: object, callback: AsyncCallback\