From 023d30d0b2a635d2a05c74804769db78052a4173 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 30 Apr 2019 18:01:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=90=8C=E6=AD=A5framework?= =?UTF-8?q?=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index c275d43e4..b4834110d 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -154,13 +154,15 @@ $(function () { $($this.data('input')).val(url).trigger('change'); }); }); + console.log('init') }; // 在内容区显示视图 this.show = function (html) { $(this.selecter).html(html); - $([0, 500, 1000]).map(function (index, time) { - setTimeout(that.reInit, time) - }); + this.reInit($(this.selecter)); + setTimeout(function () { + that.reInit($(that.selecter)); + }, 500); }; // 以hash打开网页 this.href = function (url, obj) {