angular 14 实时获取当前时间
主要用到的技术是:angular Rxjs异步获取数据
实在是看不下去别人写的,无奈,自己写…
test01.component.html
{
{date_now}}
test01.component.ts
import {
Component, OnInit } from '@angular/core';
import {
Observable } from 'rxjs';