前端做数据脱敏,手机号得掩码成138****1234,银行卡号也得处理…不然真容易翻车
function maskPhone(phone) {
return phone.replace(/(d{3})d{4}(d{4})/, '$1****$2');
}
登录/注册