手机号掩码
{{mobile|pwdCard}}
pwdCard: function (value) {
var start = value.slice(0, 1)
var end = value.slice(-1)
var strs = value
strs = strs.replace(/./g, '*')
var newStr = start + "" + strs.slice(1, -1) + "" + end
return newStr
}
手机号掩码
{{mobile|pwdCard}}
pwdCard: function (value) {
var start = value.slice(0, 1)
var end = value.slice(-1)
var strs = value
strs = strs.replace(/./g, '*')
var newStr = start + "" + strs.slice(1, -1) + "" + end
return newStr
}
转载于:https://www.cnblogs.com/shuihanxiao/p/9842751.html