How to format the phone number using TextInput in react - admin

前端 未结 0 1361
一向
一向 2020-12-30 16:56
const phoneNumberFormat = (num) => {
    let newNum = num.replace(/[-]+/g, \'\');
    let x;
    if (newNum.length <= 3) {
        x = newNum;
    } else if (n         


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