格式化银行卡号

replaceNumber () {
  this.bankNumber = this.bankNumber.replace(/\D/g,'').replace(/....(?!$)/g,'$& ')
},
let databody = {
      "code": that.bankNumber.replace(/\s*/g,""),
       "token": that.$store.state.TOKEN,
} 

  

posted @ 2019-04-23 10:08  Brian_白  阅读(363)  评论(0编辑  收藏  举报