When pushing an array's contents to another array I get
"未捕获的TypeError:无法读取未定义的属性‘Push’"错误 在这个片段中.
var order = new Object(), stack = [];
for(var i=0;i<a.length;i++){
if(parseInt(a[i].daysleft) == 0){ order[0].push(a[i]); }
if(parseInt(a[i].daysleft) > 0){ order[1].push(a[i]); }
if(parseInt(a[i].daysleft) < 0){ order[2].push(a[i]); }
}
为什么在第二个if语句中会出现这个错误?