js手机号 发表于 2019-08-16 | 更新于: 2023-01-12 12const telDesensitization = (phone: string): string => phone?.length === 11 ? phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2') : '';