标签: ionic2
我如何获得物品数量 我可以这样做.item.count?
this.todoService.getItems().then((data) => { this.items = data; }, (err) => { console.log("not allowed"); }); }
答案 0 :(得分:2)
javascript中的数组具有.length属性。
link