JS input 银行卡号格式转换

 

replace(/\D/g,'').replace(/....(?!$)/g,'$& ')

 

posted @ 2017-11-07 15:55  贝尔塔猫  阅读(675)  评论(0编辑  收藏  举报