修改日志详情列显示不全

This commit is contained in:
zhanghongqing
2018-11-15 14:52:06 +08:00
parent a4fd1cb181
commit cdb27d85a2

View File

@@ -48,7 +48,10 @@ $(function(){
var text=$(this).text().trim().substring(0,25)+"...";
//重新为td赋值;
$(this).text(text);
}
} else{
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " ");
$(this).attr("title",strTitle);
}
});
$("input[name$='isCaseSenstive']").on("change",function(){
@@ -72,6 +75,10 @@ $(function(){
}else{
text=$(element).text().trim()
}
if(typeof($(element).attr("title"))!="undefined"&&$(element).attr("title")!=null&&$(element).attr("title").length > 0){
text=$(element).attr("title").trim();
}
//特殊字符转义
text=text.replace(/[<>&"]/g,function(c){return {'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;'}[c];});