Closed
Description
This function solves the problem (这个功能解决的问题)
Avoids users to enter wrong data from the get go
Expected API (期望的 API)
This will allow us to mask inputs to specific format e.g (##)-(####)
Means a user will enter the data in that format.
Find below pure JavaScript example
https://imask.js.org/