function formatStr(str) {return str.substring(0,1) + new Array(str.length).join('*') }console.log(formatStr('高先生的猫')) // 高****