Implode an array with JavaScript?

后端 未结 7 2102
醉话见心
醉话见心 2021-01-29 22:14

Can I implode an array in jQuery like in PHP?

7条回答
  •  -上瘾入骨i
    2021-01-29 22:35

    You can do this in plain JavaScript, use Array.prototype.join:

    arrayName.join(delimiter);
    

提交回复
热议问题