我有一个MessageBox和 init 是一个ActivityIndicatorlike spinner。因此,要显示警报失败,我将不得不隐藏MessageBox包含ActivityIndicator并显示警报,如下所示;
但是,一旦hide()代码被执行,Alert messgaebox也会隐藏(或不显示)。那么我该如何预防呢?
// There is a MessageBox here, and i will be hiding it to show the alert.
Ext.Msg.hide();
Ext.Msg.alert('Failed, faileddd');