dv.transform({
type: "filter",
callback(obj) {
const time = new Date(obj.time).getTime(); // !注意:时间格式,建议转换为时间戳进行比较
return time >= ds.state.start && time <= ds.state.end;
}
});
// 东八区 时间戳的8小时时区差异 28800000ms 此处需要补全
应该为 return time >= ds.state.start && time <= ds.state.end + 28800000;