摘要: for(var i = 0 ;i<wordarr.length;i++) { if(wordarr[i] == "" || typeof(wordarr[i]) == "undefined") { wordarr.splice(i,1); i= i-1; } } 阅读全文