From 9ac9b35d07d223e49c8717dcc69ee5898c8178c7 Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Tue, 13 Nov 2018 11:02:27 +0800 Subject: [PATCH] =?UTF-8?q?title=20=E4=BF=9D=E7=95=99=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E4=BE=BF=E4=BA=8E=E9=98=85=E8=AF=BB=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E5=8D=95=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/static/global/scripts/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index 45e1bf45b..82f202a29 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -37,7 +37,7 @@ $(function(){ //获取td当前对象的文本,如果长度大于25; if($(this).text().trim().length>28){ //给td设置title属性,并且设置td的完整值.给title属性. - var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, ""); + var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " "); //解决火狐title不能自动换行 var count = Math.floor(strTitle.length/62); for(var i=1;i<=count;i++){