提交 67823efd 编写于 作者: Z zhanghuiyu_5451

ArkTS规范适配

Signed-off-by: Nzhanghuiyu <zhanghuiyu9@huawei.com>
上级 ee0424a0
...@@ -965,9 +965,7 @@ performAction(actionName: string, parameters: object, callback: AsyncCallback\<v ...@@ -965,9 +965,7 @@ performAction(actionName: string, parameters: object, callback: AsyncCallback\<v
import { BusinessError } from '@ohos.base'; import { BusinessError } from '@ohos.base';
let actionName = 'action'; let actionName = 'action';
let parameters = { let parameters: object = [];
'setText': 'test text'
};
try { try {
rootElement.performAction(actionName, parameters, (err: BusinessError<void>) => { rootElement.performAction(actionName, parameters, (err: BusinessError<void>) => {
if (err) { if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册