胡思旗
2023-08-28 75e25f89bd1bcfa2eb8208674327caed2790070a
1
2
3
4
export function formatPhoneNum (phoneNum: string | number) {
  const str = String(phoneNum)
  return str.substring(0, 3) + '****' + str.slice(-4)
}