var products = []; products.push({product_id: '1',count: 3},{product_id:'2',count: 6}) 转载于:https://www.cnblogs.com/nyfz/p/9430722.html