From 126e518f02007475c0de305a75edbf5e66908f94 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Tue, 8 Nov 2016 10:59:43 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E8=BF=9B=E4=B8=80=E6=AD=A5=E5=AE=8C?= =?UTF-8?q?=E5=96=84js=E5=8A=A0=E8=BD=BD=E6=9C=BA=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E5=A4=9A=E4=BD=99=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin/static/js/template.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/admin/static/js/template.js b/public/admin/static/js/template.js index 26f5dc2..d4f3d31 100644 --- a/public/admin/static/js/template.js +++ b/public/admin/static/js/template.js @@ -88,10 +88,15 @@ function refresh( url ) { success: function(data){ if( data.code == 200 ){ if( data.data.tempType == 'table' ){ - $.getScript('/static/js/template/table.js', function (){ + if( $.buildTable ){ $('#content').html($.buildTable(data.data)); $('#tableBox').hide().fadeIn(800); - }); + }else{ + $.getScript('/static/js/template/table.js', function (){ + $('#content').html($.buildTable(data.data)); + $('#tableBox').hide().fadeIn(800); + }); + } } }else{ $.alertMsg('请求失败!')