Discuss / JavaScript / 试试

试试

Topic source
alert("欢迎" + arr.sort().slice(0, -1).join(",") + "和" + arr[arr.length-1] + "同学!");

  • 1

Reply