diff --git a/pages/SyntaxCase/paramTest.vue b/pages/SyntaxCase/paramTest.vue index a5476f964c3f82034fa74e23c7ba077efb33c5e7..5c33c26131f7f8d64cf0f349df19906309697a3e 100644 --- a/pages/SyntaxCase/paramTest.vue +++ b/pages/SyntaxCase/paramTest.vue @@ -47,6 +47,7 @@ }, returnArrayTest() { let ret = returnArray() + console.log( JSON.stringify(ret)) if ('["1","2","3"]' == JSON.stringify(ret)) { uni.showToast({ title: '测试通过' diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index b6be2031dcac26808ed414e4cfb1093a63bc8b87..8f50709f29913584894bb7f672506a06b6e6fd57 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -397,7 +397,8 @@ export type ParamOptions = { export function inputParam(option : ParamOptions) : boolean { let inputStr = JSON.stringify(option) - if ('{"array":[1,2,3],"title":"hello"}' == inputStr) { + console.log(inputStr) + if ('{"array":["1","2","3"],"title":"hello"}' == inputStr) { return true } return false @@ -439,6 +440,7 @@ export function logStrTest() { console.log("logStrTest 字符串打印测试") } + export function logFloatTest() { console.log(3.1415926) }