javascript操作json

来源:互联网 发布:languages软件下载 编辑:程序博客网 时间:2024/05/17 06:39
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);//添加一项        }
0 0
原创粉丝点击