The method of using the phone number string interception covert
- Secret phone number
var str='15771699304';
var str2 = str.substr(0,3)+"****"+str.substr(7);
console.log(str2); // 157****9304
The method of using the phone number string interception covert
var str='15771699304';
var str2 = str.substr(0,3)+"****"+str.substr(7);
console.log(str2); // 157****9304