Ext.Msg.show({
  title: '操作提示',
  msg: '成功!',
  buttons: Ext.MessageBox.OK,
  icon: Ext.MessageBox.WARNING
});
有什么方法么?比如有什么timer属性什么的?求教

解决方案 »

  1.   


    setTimeout(function () {
               Ext.Msg.hide();
           },5000);
      

  2.   

    你可以在MessageBox的render事件上添加一个定时的任务Ext.TaskManager.start({
    run: function(){
            // 关闭MessageBox操作
        },
        duration: 3000 //单位毫秒
    });
      

  3.   


    Ext.Msg.show({
        title: '操作提示 ',
        msg: '成功! ',
        buttons: Ext.MessageBox.OK,
        icon: Ext.MessageBox.WARNING,
    listeners: {
    'render': function(cmp, opts) {
    Ext.TaskManager.start({
    run: function(){
    cmp.hide();
    },
    duration: 3000 //单位毫秒
    });
    }
    }
    });
      

  4.   

    setTimeout(function () {
                Ext.Msg.hide();
            },5000);
    写哪里?能不能具体点?