Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic2 列表项计数2_Ionic2 - Fatal编程技术网

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属性

更多信息请访问