$("#tel").html($("#tel").substring(0,3)+"****"+$("#tel").substring(8,11)); ...
如手机号码 ,中间四位用 代替 var phone 方法 字符串的截取 : 方法 正则表达式 : 测试结果: 。 银行卡,出后四位之外其他展示为星号 ...
2019-08-22 10:53 0 633 推荐指数:
$("#tel").html($("#tel").substring(0,3)+"****"+$("#tel").substring(8,11)); ...
select REPLACE(tel,SUBSTR(tel,4,4),'****') tel from rwork_uinfo where comp_id = 3722 查询结果 ...
三种实现方式 结果: ...
1、select REPLACE(mobile,SUBSTR(mobile,4,4), '****') as mobile from tableName 2、select INSERT(mobile ...
MySql ------------------------- ...
var tel = "13122223333"; var reg = /^(\d{3})\d{4}(\d{4})$/; tel = tel.replace(reg, "$1****$2" ...
两种方法: 方法一 语法 SUBSTITUTE(text,old_text,new_text,[instance_num]) 参 ...
效果展示: 直接上代码: ...