- 时间格式化:
// 导入格式化模块
import {formatDate} from '@angular/common';
// 时间格式化
this.page.topPage.data["dDate"] =formatDate(new Date(),'yyyy-MM-dd','en-US');
// 导入格式化模块
import {formatDate} from '@angular/common';
// 时间格式化
this.page.topPage.data["dDate"] =formatDate(new Date(),'yyyy-MM-dd','en-US');