js:删除json数组中元素:
for (var k = 0; k< exchangeCodeArray.length;) { if (!isValidOpt(exchangeCodeArray[k].codeStatus,actionType)) { exchangeCodeArray.splice(k,1); }else{ k++; } }
删除json数组中属性:
for (var k = 0; k< exchangeCodeArray.length; k++) { delete exchangeCodeArray[k].codeStatus; }
自己研究出来,之前不知道、没这么用的新技能:
for (var k = 0; k< exchangeCodeArray.length;) { if (!isValidOpt(exchangeCodeArray[k].codeStatus,actionType)) { exchangeCodeArray.splice(k,1); }else{ k++; } }