Regularly replace the middle four digits of the mobile phone number as *
1. Example
2. Method
replacePhoneToStar: function (phone) {
if (phone) {
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
}
},