From 1364e737b68c1c7edb6bfb13cae35dfdc6747ae9 Mon Sep 17 00:00:00 2001 From: megagao Date: Fri, 7 Oct 2016 16:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/js/common.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/WEB-INF/js/common.js b/src/main/webapp/WEB-INF/js/common.js index 18e0c71..a132ed8 100644 --- a/src/main/webapp/WEB-INF/js/common.js +++ b/src/main/webapp/WEB-INF/js/common.js @@ -369,19 +369,20 @@ function initFileUpload(){ } } }); +} + +//格式化图片 +function formatImg(value, row, index){ - //格式化图片 - function formatImg(value, row, index){ - - if(value !=null && value != ''){ - var urls = value.split(","); - var resultStr = ''; - for(var i in urls){ - resultStr +=""+""+"

"; - } - return resultStr; - }else{ - return "无"; + if(value !=null && value != ''){ + var urls = value.split(","); + var resultStr = ''; + for(var i in urls){ + resultStr +=""+""+"

"; } + return resultStr; + }else{ + return "无"; } } + -- GitLab