Vue: 字符串、数组之间的相互转换 2020-06-09 本文已影响0人 程序狮 一、数组转字符串 datas.join(',') //变成字符串后,以逗号分隔 二、字符串转数组 data.split(',') //字符串按逗号分隔成数组