import { Moment } from 'moment';
import * as moment from 'moment/moment';
export class JobExecution {
public startTime: Moment;
constructor() {
this.stepExecutions = [];
}
public get startTimeFormatted(): string {
return DateTimeUtils.formatAsDateTime(this.startTime);
}
显示错误提示。
无法将类型'Moment'的参数分配给类型的参数 “日期”。
类型“ Moment”中缺少属性“ toDateString”。
return DateTimeUtils.formatAsDateTime(this.startTime)
此代码错误
答案 0 :(得分:1)
这可能会帮助
select make.vehicle_id ,
make.attr_value as make ,
description.attr_value as description ,
gearbox.attr_value as gearbox
from
car_table make,
car_table description,
car_table gearbox
where make.vehicle_id = description.vehicle_id
and description.vehicle_id = gearbox.vehicle_id
and make.attr_id = 123
and description.attr_id = 345
and gearbox.attr_id = 678