vue 判断数组是否为空

为空:array == undefined || array.length <= 0 (顺序不能调换)undefined

不为空: array !==undefined && array.length > 0 

相关文章
相关标签/搜索