js 创建数组 创建对象 删除数组指定对象
var materielArr = []; //创建数组 var materiel = {}; //创建对象 //添加到数组 materiel.cInvCode = cInvCode; materiel.quantity = quantity; materiel.orderType = orderType; materielArr.push(materiel); //删除指定对象 materiel.cInvCode = cInvCode; materiel.quantity = quantity; materiel.orderType = orderType; materielArr = materielArr.filter((item)=>item.cInvCode!=cInvCode);