2

当我单击消息框的是按钮或否按钮时,我的页面将转移到另一个页面。

Ext.Msg.show({
 title:'Register',
 msg: 'You are successfully registered. Would you like to continue?',
 buttons: Ext.Msg.YESNOCANCEL 
 });
4

1 回答 1

3
Ext.Msg.show({
    title: 'Register',
    msg: 'You are successfully registered. Would you like to continue?',
    buttons: Ext.Msg.YESNOCANCEL,
    callback: function(btn) {
        if (btn == 'yes') {
            window.location = 'newpage.html';
        }
    }
}); 
于 2013-08-05T08:55:05.773 回答