let formatPhone = p=>{
if(p){
return p.substring(0,3) + '*****' + p.substring(p.length-2);
}
}
<div>{{13738384380 |formatPhone}}</div>
//137****80
vue过滤器手机号带*****掩码
最新推荐文章于 2024-08-12 08:57:51 发布
let formatPhone = p=>{
if(p){
return p.substring(0,3) + '*****' + p.substring(p.length-2);
}
}
<div>{{13738384380 |formatPhone}}</div>
//137****80