Vue关于分割数组。join(“,“)分割数组
console.log(this.selectedKeys.join(','),'dddd')console.log('s',this.selectedKeys,'ss')通过:前提下有个数组selectedKeys。this.selectedKeys.join(',')即可实现分割数组。上面的就是栗子。
·
console.log(this.selectedKeys.join(','),'dddd')
![]()
console.log('s',this.selectedKeys,'ss')

通过:前提下有个数组selectedKeys。
this.selectedKeys.join(',')
即可实现分割数组。
上面的就是栗子。
更多推荐



所有评论(0)