📅  最后修改于: 2022-03-11 15:04:18.353000             🧑  作者: Mango
var array1 = ["test, test1"];
var array = array1[0].split(',');
array = array.map(i => '"' + i + '"');
alert(array)
Run code snippet