Merge branch 'develop' of http://10.0.6.99/gwall/gwall.git into develop

This commit is contained in:
wangxin
2018-09-11 11:04:02 +08:00
9 changed files with 219 additions and 102 deletions

View File

@@ -32,17 +32,12 @@ $(function(){
}else{
text=$(element).text().trim()
}
//增加换行
var count = Math.floor(text.length/52);
for(var i=1;i<=count;i++){
text=text.substring(0,i*52-1)+"\n"+text.substring(i*52-1);
}
//特殊字符转义
text=text.replace(/[<>&"]/g,function(c){return {'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;'}[c];});
html+="<div class='row col-md-12'>";
html+="<div class='col-md-4'><label>"+$(".table tr th").eq(index).text().trim()+":</label></div>";
html+="<div class='col-md-6'><label>"+text+"</label></div>";
html+="<div class='col-md-6' style='width:330px;display:block;word-break:break-all;word-wrap:break-word;'><label>"+text+"</label></div>";
html+="</div>";
}