检查数组是空还是不存在的最佳方法是什么?
像这样的东西?
if(array.length < 1 || array == undefined){ //empty }
javascript arrays
arrays ×1
javascript ×1