我有一个从 2017 年 1 月到 2018 年 1 月的 VisJS 时间表。时间线以年中三个月的范围为中心打开,但我希望它每次都以当前时间为中心打开。
min: new Date(2017, 1, 5), // lower limit of visible range
max: new Date(2018, 1, 11), // upper limit of visible range
zoomMin: 1000 * 60 * 60 * 24, // one day in milliseconds
zoomMax: 1000 * 60 * 60 * 24*31*3, // three months in milliseconds