微信小程序Only digits (0-9) can be put inside [] in the path string

 let t='accountList[${type}].balance'

我在网上看到说可以加${},但是还是有报错,请问如何解决,用下标来索引到数组?谢谢!

${type}这个是用什么框架填充的,有没有把实际的数字写进去(可以用浏览器的f12调试下),或者是否为空,包含非数字的字符。

https://www.cnblogs.com/yiduobaozhiblog1/p/12387619.html