Sometimes we don't need to display all the phone numbers on the page, so we may need to deal with the phone numbers accordingly. The js code is as follows:
alert("13456789012".replace(/(\d{3})(\d{4})(\d{4})/,"$1****$3"));
Sometimes we don't need to display all the phone numbers on the page, so we may need to deal with the phone numbers accordingly. The js code is as follows:
alert("13456789012".replace(/(\d{3})(\d{4})(\d{4})/,"$1****$3"));