问题描述
if (index.length === 1) {
listRight.splice(index[0] + 1 , 0 ,copyValue)
}
if (index.length === 2) {
listRight[index[0]].tasks.splice(index[1] + 1,0,copyValue)
}
if (index.length === 3) {
listRight[index[0]].tasks[index[1]].tasks.splice(index[2] + 1,0,copyValue)
}
我猜你想要这个
Array 构造函数默认行为造成的