var tel = "13122223333";var reg = /^(\d{3})\d{4}(\d{4})$/;tel = tel.replace(reg, "$1****$2");console.log(tel);
评论前必须登录!
立即登录