簡體   English   中英

我需要在模塊加載后立即在gwt中觸發一個函數

[英]i need to fire a function in gwt right after module is being loaded

我需要在模塊加載后立即觸發一個函數,例如在onModuleLoad()執行之后立即執行該事情,如Timer或scheduleDeferred或其他任何事情?

something like
 
Scheduler.get().scheduleDeferred(new ScheduledCommand() {

            @Override
            public void execute() {
                Window.alert("bon jour! amis.");

            }
        });
     
or 
...
...

timer.schedule(2000);

or
??

了解何時加載GWT模塊可能會有所幫助。

在EntryPoint實現中使用Scheduler.scheduleEntry 我現在執行此操作以注入其他(非GWT處理的)樣式表,並且我需要確保在渲染視圖后發生這種情況。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM