把数组元素转为字符串后用分隔符连接。
array.join(separator)
separator
,
String。
String
items = [1, 2, 3] result = items.join(',')