/* * 说明: * 开始时间参数必须,结束时间不是必须 * 如果没有结束时间,则初始化为计时器,时间递增,如果两个参数齐全,则初始化为倒计时 */{startTime: 'Date String',endTime: 'Date String',unit: {day: true,hour: true,minute: true,second: true},onStart: function(){// do something when start},onChange: function(value){// value -> object include formated time by unit in options},onStop: function(){// do something when stop}}