-1
我已经写了下面的功能打字稿: -呼叫打字稿功能顺序:Angular2
AdjustSpinAndGetAmbiguityAnalysisResult() {
this.cssRefreshSpin = "glyphicon glyphicon-refresh glyphicon-spin";
this.GetAmbiguityAnalysisResult();
this.cssRefreshSpin = "glyphicon glyphicon-refresh";
}
此功能调用: - GetAmbiguityAnalysisResult();
但我想分配this.cssRefreshSpin = "glyphicon glyphicon-refresh";
时功能GetAmbiguityAnalysisResult()
完全执行。
可以做些什么呢?
在这里看到:https://stackoverflow.com/a/45737338/1791913 – Faisal
是什么'GetAmbiguityAnalysisResult'返回? – n00dl3
这就是已经发生的事情。我假设你的'GetAmbiguityAnalysisResult'返回一个承诺,我很好奇你为什么决定离开这些信息。如果这确实是一个承诺,那么一个快速的谷歌应该为你解决这个问题。另外,你为什么要标记这个C#和.NET?它与两者无关。 – Rob