let arr = [123, "测试", "abuf", 'ee'] console.log("'" + arr.join("','")+ "'") // "'123','测试','abuf','ee'"
本文标题:js数组转字符串如何带单引号
本文链接:https://www.haomeiwen.com/subject/rkoznltx.html
网友评论