There's no predefined function, because it's quite simple. var a = ['a', 'b', 'c']; var str = a.slice(0, -1).join(',')+' or '+a.slice(-1);.
確定! 回上一頁