js手机号字符串打码 let phone = "17754816593"; phone = phone.substr(0, 3) + phone.substr(-4).padStart(phone.length - 3, '*'); console.log({phone}); // 177****6593