标签:ar for sp c ef type js bs r
for(var i = 0 ;i<wordarr.length;i++) { if(wordarr[i] == "" || typeof(wordarr[i]) == "undefined") { wordarr.splice(i,1); i= i-1; } }
js 数组去除空值
原文地址:http://www.cnblogs.com/afei-happy/p/3951571.html