Update a certain number inside a string

后端 未结 0 1042
执念已碎
执念已碎 2020-12-02 07:55

I want to find a number at a certain position and update it (plus another number), for example:

const type = \'Dog\'; // Can be other types
const qtyOfNew = 3         


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