//str:处理的字符串 frontLen前面显示位数 endLen后面显示位数 isHide是否隐藏 不为0隐藏 type 1身份证 2手机号
function plusToXing (str,type,isHide) {
debugger;
if ((str != 0 && !str) || str == ‘null’) {
return str = ”;
}else {
if(isHide == ‘0’){
//身份证
if(type==’1’){
var len = str.length-6-0;
var xing = ”;
for (var i=0;i
js隐私信息转换
猜你喜欢
转载自blog.csdn.net/ZQ960214/article/details/81905411
今日推荐
周排行