2012-09-11 4 views

답변

3

하나의 매개 변수 인 Ext.window.Window의 인스턴스를 사용하고이를 파기하는 MyApp.destroyWindow이라는 함수가 있다고 가정 해 봅시다. 시간 제한을 설정하려면 Ext.defer을 사용하십시오.

Ext.defer(MyApp.destroyWindow, /* function to call */ 
      5000, /* timeout in milliseconds */, 
      MyApp, /* scope of the called function */ 
      [myWindow] /* array of arguments to provide the function */ 
); 

사용 방법에 대한 자세한 내용은 Ext.Function.defer을 참조하십시오. Ext.deferExt.Function.defer의 별명이므로 두 호출 중 하나가 작동합니다.

관련 문제