📌  相关文章
📜  逗号后换行的javascript代码 - Javascript代码示例

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

代码示例1
var test = list.toString();
    // console.log("test", test)
    let dataToArray = test.split(',').map(item => item.trim());
//convert array to string replacing comma with new line
    console.log(dataToArray.join("
")) this.data[i].zoneAdd = dataToArray.join("
")