angular 14 实时获取当前时间

angular 14 实时获取当前时间

主要用到的技术是:angular Rxjs异步获取数据
实在是看不下去别人写的,无奈,自己写…
test01.component.html

{
  
   
   {date_now}}

test01.component.ts

import {
   
    
     Component, OnInit } from '@angular/core';
import {
   
    
     Observable } from 'rxjs';

猜你喜欢

转载自blog.csdn.net/qq_39962271/article/details/126605193