主题 : 首页怎么获取当前时间
级别: 商业授权用户
UID: 42155
积分:894 加为好友
威望: 4 精华: 0
主题:108 回复:603
注册时间:2012-12-18
在线时长:0
1#   发表于:2014-11-04 20:25:35  IP:112.140.*.*
[#if ${c.attr.endDate}<${.now}>]                                   
                                     <span class="bidTime" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[# elseif ${c.attr.startDate}>${.now}]
<span class="bidTime" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[#else]
<span class="bidTime now" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[/#if]

怎么比较 ${c.attr.endDate}与当前时间?
级别: 商业授权用户
UID: 42155
积分:894 加为好友
威望: 4 精华: 0
主题:108 回复:603
注册时间:2012-12-18
在线时长:0
2#   发表于:2014-11-04 20:39:30  IP:112.140.*.*
哪位大侠帮忙看下
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
3#   发表于:2014-11-05 08:46:16  IP:182.31.*.*
[#if ${c.attr.endDate}<${.now}>]                                   
                                     <span class="bidTime" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[# elseif ${c.attr.startDate}>${.now}]
<span class="bidTime" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[#else]
<span class="bidTime now" id="zbgghw-${c_index}-time" ><input type="hidden" value="${c.attr.startDate}" class="startTime" t="zbgghw-${c_index}-time" >
[/#if]

怎么比较 ${c.attr.endDate}与当前时间?
 时间是不能自定义的,要比较当前时间要在源码里写方法,模板里比较不了
功成由勤,业精于勤。
1 共1页