JS input 银行卡号格式转换

replace(/D/g,'').replace(/....(?!$)/g,'$& ')
原文地址:https://www.cnblogs.com/CyLee/p/7799376.html