let tellphone = '电话号码';
const regPhone = tellphone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2");
console.log(regPhone);
const phone = tellphone.substr(0, 3) + "****" + tellphone.substr(7);
console.log(phone);
const padEndPhone = tellphone.substr(0, 3).padEnd(7, "*") + tellphone.substr(7);
console.log(padEndPhone);
const padStartPhone = tellphone.substr(0, 3) + tellphone.substr(7).padStart(8, "*");
console.log(padStartPhone);
const padStart = "001".padStart(8, "0");
console.log(padStart);
const padEnd = "34".padEnd(5, "*");
console.log(padEnd);