js判断一个数组是否为空

时间:2023-11-29 15:58:14
var s = [];
if(s.length == 0){
    alert('空数组');
}