diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index e5d909303b149e25c292b52dda2542c3f018a010..36d9ddb652a51ed866c66e21871d23a570821519 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -1185,17 +1185,26 @@ js引擎除了 string,number,boolean 等基本数据结构外,仅支持JSONObj ``` // UTS插件,声明数组参数 -function getBaseInfo(filterArray : Array) : GetDeviceInfoResult { - // todo +export function callWithoutParam(filterArray : Array,success: () => void) { + console.log(filterArray) + success(); + return { name: "doSthWithCallback" }; } ``` ```js // 前端传递数组参数 -console.log(getDeviceInfo({ - filter:["system"] -})); +UTSHello.callWithoutParam( + ["system","optionB"] + , + ()=>{ + uni.showToast({ + title:'成功调用uts插件uts-helloworld的callWithoutParam', + icon:'none' + }); + } +); ```