Invalid prop: type check failed for prop "value". Expected String, Number, got A

1,050 阅读1分钟

Invalid prop: type check failed for prop "value". Expected String, Number, got Array

image.png

预期字符串,数字,得到数组.

found in: image.png

image.png

Array.slice()截取返回的是数组,但是我这里需要的是字符串. ==>数组转为字符串. Array.toSting()