1
2
3
4
5
6
7
|
var
time_eles = $( ".time_tranfer" );
for ( var
i =0; i < time_eles.length;i++){
var
time_ele_item = time_eles.eq(i);
//alert(time_ele_item.text());
time_ele_item.html( "更新于" +getDateDiff(time_ele_item.text()));
}
});
|
Jquery函数实现时间显示模式为更新于+被当前时间减去后剩余的时间值(例如:更新于三小时前)的处理。,布布扣,bubuko.com