1.问题说明
2.问题分析
tasklist2不是一个数组,应该将其转为数组在用map展开。
3.解决方式
将const taskList2 = this.props.taskList2;
改为let taskList2=Array.from(this.props.taskList2);
TypeError: taskList2.map is not a function
猜你喜欢
转载自www.cnblogs.com/xu0428/p/13367181.html
今日推荐
周排行