提交 7f15cddb 编写于 作者: 杜庆泉's avatar 杜庆泉

修复参数传递的示例

上级 cda8f9fb
......@@ -47,6 +47,7 @@
},
returnArrayTest() {
let ret = returnArray()
console.log( JSON.stringify(ret))
if ('["1","2","3"]' == JSON.stringify(ret)) {
uni.showToast({
title: '测试通过'
......
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册