我有两个变量:如何计算jquery中的时间?
start = "14:00"
duration = "30" (minutes"
如何计算与jQuery或Javascript的时间?因此它看起来像14:00 + 30 = 14:30
我有两个变量:如何计算jquery中的时间?
start = "14:00"
duration = "30" (minutes"
如何计算与jQuery或Javascript的时间?因此它看起来像14:00 + 30 = 14:30
哇..不错的插件! :D – Dharmana 2014-09-26 11:55:53
您应该所有的值转移到秒,然后让他们HH:MM
start = "14:00" => 14*60*60 translates to seconds
duration = "30" = > 30*60 translates to seconds
var theDate = (new Date).clearTime().addSeconds(57600).toString('H:mm:ss');
:)
是什么?你对这个试试..? – 2014-09-26 11:44:20