Ionic2 列表项计数2

Ionic2 列表项计数2,ionic2,Ionic2,我怎样才能得到物品的数量 我能做这个吗 this.todoService.getItems().then((data) => { this.items = data; }, (err) => { console.log("not allowed"); }); } javascript中的数组具有.length属性 更多信息请访问

我怎样才能得到物品的数量 我能做这个吗

this.todoService.getItems().then((data) => {
          this.items = data;


    }, (err) => {
        console.log("not allowed");
    });

  }

javascript中的数组具有.length属性

更多信息请访问