隐藏手机中间几位

50 阅读1分钟
export function repTel(tel){
	var reg = /^(\d{3})\d{4}(\d{4})$/;
	return tel.replace(reg, "$1****$2");
}