类似于angular1里的$scope.$apply();方法
//页面引入所需模块
import { ChangeDetectorRef } from '@angular/core';
//注入服务
constructor(public changeDetectorRef:ChangeDetectorRef ) {}
//在更改数据后不刷新的地方添加这两句话
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();