整了好久没有整出来,其实特简单,代码如下:

<script>
    function stapler(){
        Ext.Msg.show({
            title:'milton',
            msg:'Have you seen my stapler?',
            buttons:{
                yes:true,
                no:true,
                cancel:true
            }
        });
        
    }
    
    function a(){   
        alert("Everything is ready.");   
    }  

    Ext.onReady(stapler);
</script>

特别注意 Ext.onReady(stapler);这句,stapler后面是没有括号的!

posted on 2012-06-13 20:22  ventry  阅读(212)  评论(0编辑  收藏  举报