Skip to content

直接上代码

js
let arr = str.split(',')
let str = arr.join(',')

let str = '123'
let a = str.split('').reverse().join('') // a为 '321'