angular8
Doooer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JS 前端同时设置多个定时器
time = 10; //前端显示的倒计时时间 pageTimer = {}; // 计时器数组 timerNumber = 0; // 计时器id // 显示倒计时,点击触发倒计时: start() { this.time = 10; this.pageTimer[this.timerNumber] = setInterval(() => { this.countDown(); }, 1000); this.timerNumber = this.timerNum.原创 2020-07-23 17:13:26 · 5510 阅读 · 0 评论 -
angular8 非父子组件之间通信
一般实现非父子之间通信我们可以使用localstorage和通过模块之间共享service并订阅更新实现,下面介绍第二种方法的实现: 1.新建global.service.ts2 import { Injectable } from '@angular/core'; import {Observable} from 'rxjs/Observable'; import { Subject } ...原创 2019-11-14 15:22:26 · 1708 阅读 · 0 评论
分享