how to separate the numbers in a string before the comma and push into an array

后端 未结 0 1323
执念已碎
执念已碎 2021-01-05 02:07

i have a string format like this:

var a=18,19,20

i want to seperate the numbers before comma and push them to my array which named temp:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题