银行卡四位一分割
use_account = row.use_account.replace(/[\s]/g, '').replace(/(\d{4})(?=\d)/g, "$1 ");
手机号(3,4,4)
var reg = /^(\d{3})(\d{4})(\d{4})$/;
var matches = reg.exec(row.tel);
var newNum = matches[1] + ' ' + matches[2] + ' ' + matches[3];
手机中间四位隐藏
var phone = $('#phone').text();
var mphone = phone.substr(0, 3) + '****' + phone.substr(7);
例如(182 **** 1384)
js分割手机号和银行卡
最新推荐文章于 2023-06-10 10:49:26 发布