38、后端返回空数据则删除不显示

          //过滤数据,status为空则删除数据
          Array.from(data).forEach((item, index) => {
            if (item.status.length=== 0) {
              console.log(item, index);
              data.splice(data[index], 1);
            }
          });

 

posted @ 2019-09-05 18:00  要什么自行车y  阅读(212)  评论(0编辑  收藏  举报