获取服务器时间/计数/总和(javascript)

时间:2013-04-16 08:30:38

标签: javascript html

所以基本上这就是我想做的事情:获取服务器时间(日期和时间),向后计数24小时,转到“链接”,在这24小时内总结所有“XX”

实施例: 当前时间11:00 16.04.2013

16.04.2013 09:59:16 XX
16.04.2013 06:30:18 YY
16.04.2013 05:44:07 XX
15.04.2013 22:10:10 XX
15.04.2013 10:00:00 XX

并且函数应该返回3作为总和

@ Marco Forberg

<table class="messages-list">
<tbody><tr>
<td class="date">16.04.2013 09:59:16
</td>
<td class="text"> XX
</td>
</tr>
</tbody>
</table>

和当前时间

<span id="servertime" rel="1366102414">11:53:33</span>

0 个答案:

没有答案