Created
April 4, 2020 09:39
-
-
Save ClausClaus/749079e3f91d9f4b7c6ccd6049c4ce8f to your computer and use it in GitHub Desktop.
格式化手机号码,以横杆分割
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'11111111111'.replace(/^(...)(....)/g,'$1-$2-'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment