1、使用正则: 2、通过长度截取 ...
1、使用正则: 2、通过长度截取 ...
代码COPY 3. 使用正则 func ...
{{item.iphone | phoneFilter}} filters:{ phoneFilter(val) { let reg=/^(.{3}).*(.{4})$/; ...
案例代码如下: // 判断是否为11位的纯数字 if (Number(cellValue) && String(cellValue).length === 11) { var mobile = String(cellValue) var ...
1、select REPLACE(mobile,SUBSTR(mobile,4,4), '****') as mobile from tableName 2、select INSERT(mobile ...
本文转载自:https://blog.csdn.net/qq_38290251/article/details/83421069 1. 切割 2. 正则 ...
var tel = "13122223333"; var reg = /^(\d{3})\d{4}(\d{4})$/; tel = tel.replace(reg, "$1****$2"); ...
一、 二、 ...