我要拿到这根线。(我从后端获取逗号分隔的字符串)
"seasons": "[7, 9]"
我想像这样迭代array的数组。
// example this.props.data.seasons.map((element) => console.log(element));
如何将"7,9“转换为数组7,9?
你们经常处理数组字符串吗?
https://stackoverflow.com/questions/47504488
相似问题