How to split and modify a string in NodeJS?

后端 未结 3 1898
北恋
北恋 2020-12-23 17:41

I have a string :

var str = \"123, 124, 234,252\";

I want to parse each item after split and increment 1. So I will have:

v         


        
3条回答
提交回复
热议问题