option = { title: { text: '怎么把时间轴click事件改为dblclick' }, timeline: { bottom: 15, show: true, playInterval: '3000', axisType: 'time', controlStyle: { showPlayBtn: true, showPrevBtn: true, showNextBtn: true, }, tooltip: { formatter: function (params) { return params.name; } }, data: [1,2,3], label: { formatter: function (s) { var date = (new Date(s)).getFullYear().toString().substring(2, 4) + '/' + ((new Date(s)).getMonth() + 1).toString() return date; } } }, };