mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 23:24:32 +08:00
优化 util 文档示例
This commit is contained in:
@@ -6,10 +6,7 @@
|
||||
<div class="layui-inline">
|
||||
<input type="text" readonly class="layui-input" id="test1" value="2099-12-31 00:00:00">
|
||||
</div>
|
||||
|
||||
<blockquote class="layui-elem-quote" style="margin-top: 10px;">
|
||||
<div id="test2"></div>
|
||||
</blockquote>
|
||||
<span class="layui-word-aux layui-font-green" id="test2"></span>
|
||||
|
||||
<h3 class="ws-anchor ws-bold">某个时间在多久前</h3>
|
||||
|
||||
@@ -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){ // 计时完成
|
||||
|
Reference in New Issue
Block a user