Angular2 DatePipe
<p>The hero's birthday is {{ birthday | date:'yyyy年MM月dd日 HH:mm:ss' }}</p>
// birthday = Date.now(); birthday = new Date(2016, 10, 21);
- 上一篇 »Angular2入门教程-1
- 下一篇 »angular2新建的项目上传github
<p>The hero's birthday is {{ birthday | date:'yyyy年MM月dd日 HH:mm:ss' }}</p>
// birthday = Date.now(); birthday = new Date(2016, 10, 21);