Ext.on( Ext.MessageBox.show({ title: "提示", msg: "数据读取中...", animal:"id1", buttons: Ext.MessageBox.OK, //multiline: true, //prompt: true, value:"abcdef", width: 300, height: 100, modal:true, closable: true, progress: true, icon:Ext.Msg.INFO, fn: function (b, t) { Ext.Msg.alert("提示", b + "-" + t); }; }); var f = function (v) { return function () { if (v == 11) { Ext.Msg.hide(); } else { Ext.Msg.updateProgress(v / 10, "正在读取【" + v + "】个文件"); } }; }; for (var i = 1; i < 12; i++) { setTimeout(f(i), i * 1000); } );