📜  角度当前年份 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:39.030000             🧑  作者: Mango

代码示例1
// In component file
export class SomeComponent {
  currentYear: number = new Date().getFullYear();
}

// In HTML file
{{ currentYear }}. All rights reserved