Skip to content

Commit

Permalink
Fix document description errors
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuguohua committed Jan 2, 2025
1 parent 7abd971 commit 4ca5a56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions versions/3.8/zh/advanced-topics/arkts-reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ let param = {
a:1,
b:2
}
let o1 = jsb.reflection.callStaticMethod(true,"entry/src/main/ets/test","entry/test",JSON.stringify(param));
let o1 = native.reflection.callStaticMethod("entry/src/main/ets/test","entry/test",JSON.stringify(param), true);
console.log("result::", o1, typeof o1, JSON.parse(o1).a);

let o2 =jsb.reflection.callStaticMethod(false,"entry/src/main/ets/test","entry/syncTest",JSON.stringify(param));
let o2 = native.reflection.callStaticMethod("entry/src/main/ets/test","entry/syncTest",JSON.stringify(param), false);
console.log("result::", o2, typeof o2, JSON.parse(o2).a);
```
### HAP加载HAR模块名
Expand Down Expand Up @@ -118,9 +118,9 @@ let param = {
a:1,
b:2
}
let o1 = jsb.reflection.callStaticMethod(true,"library","entry/test",JSON.stringify(param));
let o1 = native.reflection.callStaticMethod("library","entry/test",JSON.stringify(param), true);
console.log("result::", o1, typeof o1, JSON.parse(o1).a);

let o2 =jsb.reflection.callStaticMethod(false,"library","entry/syncTest",JSON.stringify(param));
let o2 = native.reflection.callStaticMethod("library","entry/syncTest",JSON.stringify(param), false);
console.log("result::", o2, typeof o2, JSON.parse(o2).a);
```

0 comments on commit 4ca5a56

Please sign in to comment.