//过滤数据,status为空则删除数据 Array.from(data).forEach((item, index) => { if (item.status.length=== 0) { console.log(item, index); data.splice(data[index], 1); } });
38、后端返回空数据则删除不显示
原文:https://www.cnblogs.com/xlfdqf/p/11468745.html