📜  为数组值添加引号 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:24.293000             🧑  作者: Mango

代码示例2
var array1 = ["test, test1"];

 var array = array1[0].split(',');
array = array.map(i => '"' + i + '"');
alert(array)
 Run code snippet