From da8b211f97bdffcb3de4860965cdfdbb7f2eb36d Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Tue, 11 Sep 2018 10:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A5=E5=BF=97=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=9A=84=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/static/global/scripts/common.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index 205deaa78..3c0e70c5d 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -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 {'<':'<','>':'>','&':'&','"':'"'}[c];}); html+="
"; html+="
"; - html+="
"; + html+="
"; html+="
"; }