angular 强制刷新
1. 引入模块import {Component, ViewChild, NgZone} from '@angular/core';2. 声明constructor(public ngZone: NgZone) {}}3.使用this.ngZone.run(() => {// 需要强...
·
1. 引入模块
import {
Component, ViewChild, NgZone
} from '@angular/core';
2. 声明
constructor(
public ngZone: NgZone) {
}
}
3.使用
this.ngZone.run(() => {
// 需要强制刷新的数据
});
更多推荐
所有评论(0)