guoshilong
2023-09-28 cbcb844edf5c3bef84560af8bde1e4973fab7f3a
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}