alert("欢迎"+arr.sort().slice(0,3)+"和"+ arr.sort().slice(3) +"同学!")
你sort了两次
嗯,发现了。
Sign in to make a reply
Witee-Xie
alert("欢迎"+arr.sort().slice(0,3)+"和"+ arr.sort().slice(3) +"同学!")