From 968b505169693164cea1e7edf30c18c9113381f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 3 Jul 2023 08:08:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20util=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/util/detail/demo.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/util/detail/demo.md b/docs/util/detail/demo.md index f23f2c3c..9522face 100644 --- a/docs/util/detail/demo.md +++ b/docs/util/detail/demo.md @@ -6,11 +6,8 @@
+ -
-
-
-

某个时间在多久前

请选择要计算的日期: @@ -59,7 +56,7 @@ layui.use(function(){ }, clock: function(obj, inst){ // 计时中 var str = [obj.d,'天',obj.h,'时',obj.m,'分',obj.s,'秒'].join(' '); - lay('#test2').html('距离上述日期还有:'+ str); + lay('#test2').html(str); util.countdown.timer = inst.timer; // 记录当前定时器,以便在重复渲染时清除。实际使用时不常用 }, done: function(obj, inst){ // 计时完成