场景 技术点: substr() 代码: infoPhone() { let tel = sessionStorage.getItem('phone') let phone = tel.substr(0, 3) + '****' + tel.substr(7) return phone },