js判断是否为数组 isarray判断是否数组 Js如何判断数组为空?要判断数组是否为空,可以使用length方法:例如,var a=[if(a.length==0){alert(1)]}else{alert(2)}... 2021-03-15 2509次浏览