标签:indexof remove logs length 删除 item ret splice class
function remove(arr,item){ if(arr.length){ var index = arr.indexOf(item); if(index>-1){ return arr.splice(index,1) } } }
标签:indexof remove logs length 删除 item ret splice class
原文地址:http://www.cnblogs.com/vali/p/7071040.html