Commit adbacda5 authored by agping's avatar agping

隐藏字符修改

parent da6e8aa7
...@@ -230,9 +230,11 @@ function hideTel(str){ ...@@ -230,9 +230,11 @@ function hideTel(str){
} }
//显示商铺名称的前四个 字 //显示商铺名称的前四个 字
function hideStr(str){ function hideStr(str){
if (str.length > 4) { str = str.substring(0,4)+"***"}; if(str){
return str; if (str.length > 4) { str = str.substring(0,4)+"***"};
} return str;
}
}
//判断数组里有没有 某个字段 返回类名 客户列表 //判断数组里有没有 某个字段 返回类名 客户列表
function getLoaclId(id){ function getLoaclId(id){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment