var news = arr; if(news.length >0){ alert('Welcome'+news.slice(0,(news.length-1)).join(',')+" and "+news.slice(-1)+"!"); }else{ alert('not have new student'); }
Sign in to make a reply
傲娇的小猴几