javascript - How to separate a set of obtained data with commas in jquery?
巴扎黑
巴扎黑 2017-05-16 13:39:55
0
1
429


As shown in the figure, on the right side, take the span value of the selected row of the checkbox in all li. The displayed results are connected together, such as 1234. How to separate them with commas? Open, it will display like 1, 2, 3, 4.

巴扎黑
巴扎黑

reply all(1)
習慣沉默

It’s very simple, just split it into arrays and then join it:

s.split("").join(",");
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template