setOcrProccesing() {
.....
this.setProgressBarSimulation();
}
setOcrMessage() {
......
}
setProgressBarSimulation() {
setTimeout(() => {
this.ocrProgress += 10;
if(this.ocrProgress == 100) {
this.ocrProgress = 0;
}
}, 1000);
}
方法setOcrProccesing()首先执行,在这种情况下,methodSetProgressBarSimulation()只执行一个如何处理此方法的工作,直到setOcrMessage()执行?