Parsing an Int from a string in javascript

前端 未结 3 1349
难免孤独
难免孤独 2020-12-02 17:27

In javascript, what is the best way to parse an INT from a string which starts with a letter (such as \"test[123]\")? I need something that will work for the example below.

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