let formatPhone = p=>{
if(p){
return p.substring(0,3) + '*****' + p.substring(p.length-2);
}
}
<div>{{13738384380 |formatPhone}}</div>
//137****80
vue过滤器手机号带*****掩码
猜你喜欢
转载自blog.csdn.net/weixin_43787528/article/details/89212250
今日推荐
周排行