javascript操作json
for (var i = 0; i < selectedPartList.length; i++) {
if (selectedPartList[i].vpart_code == jsonRow.vpart_code) {
selectedPartList.splice(i, 1);//删除一项
}
}
if (quantity != "0") {
jsonRow.vused_qty = quantity;
selectedPartList.push(jsonRow);//添加一项
}posted on 2015-09-10 15:16 tongdengquan 阅读(91) 评论(0) 收藏 举报
浙公网安备 33010602011771号