JavaScript replace only executes on complete match of the regex when using groups

前端 未结 0 837
旧巷少年郎
旧巷少年郎 2021-01-04 19:50

I\'m trying to create an input mask with the following pattern: "4.01.05.01-6". In the onchange method I execute a function that uses the replace method:

         


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