数组操作:
var unnorArray = []; for ( var i = 0; i < record.length; i++) { var item = {}; if (record[i].get('inMidName') == '未知' || record[i].get('inNetName') == '未知') { Ext.Msg.alert('提示','卡号 '+ record[i].get('unnormalCardNo') +' 不在库存中!') return false; } item.bCardNo = record[i].get('unnormalCardNo'); item.eCardNo = record[i].get('unnormalCardNo'); item.cardNum = 1; item.cardType = record[i].get('cardType'); item.outMid = record[i].get('inMid'); item.outNetId = record[i].get('inNetId'); item.transType = record[i].get('transType'); unnorArray.push(item); }