ExtJS timeout

Description

ExtJS timeout

Example

 1 this.panelWin = new Ext.Window({
 2                     border: false,
 3                     resizable: false,
 4                     draggable: false,
 5                     closable: false,
 6                     layout: 'fit',
 7                     autoWidth: true,
 8                     autoHeight: true,
 9                     items: [newPanel],
10                     listeners:{
11                         show: function() {
12                             var self = this;
13                             setTimeout(function() {
14                                 self.destroy()
15                             },3000);
16                         },
17                         scope: this
18                     }
19                 });

Reference

原文地址:https://www.cnblogs.com/yuxiaoqi/p/5143545.html