摘要: var total=0;var data=new Array(5);//定义了data数组,length为5,但是都是元素都是undefined。 for(i=0;i<data.length;i++){ if(!data[i]) { total=total+1; con... 阅读全文