针对数字0的特殊情况的一些判断: 判断为0:=== 或者toString() item.points[1] === '' || item.points[1] === null || item.points[1] === undefined 数组末尾项为0也展示,否则展示头一项: [...item.points].pop())