0
点赞
收藏
分享

微信扫一扫

js 手机号用横线分隔

夕阳孤草 2022-07-14 阅读 47

alert("18723568888".replace(/(?=(\d{4})+$)/g,"-"));//横线


alert("18723568888".replace(/(?=(\d{4})+$)/g,"-")); //空格

alert("18723568888".replace(/(?=(\d{4})+$)/g,"-"));

js 手机号用横线分隔_java

image.png

举报

相关推荐

0 条评论