I have the following string variable in Javascript;
var str = "12-134, 65-598, 100-210, 857-34, 3-21, 89-103".
I'd like to return all the values before and after "-" separately. That is before "-" ; "12, 65, 100, 857, 3, 89". And after "-"; 134, 598, 210, 34, 21, 103. Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…