1.问题说明 2.问题分析 tasklist2不是一个数组,应该将其转为数组在用map展开。 3.解决方式 将const taskList2 = this.props.taskList2;改为let taskList2=Array.from(this.props.taskList2);
const taskList2 = this.props.taskList2;
let taskList2=Array.from(this.props.taskList2);
TypeError: taskList2.map is not a function
原文:https://www.cnblogs.com/xu0428/p/13367181.html