JS input 银行卡号格式转换

 

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

 

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