zno2

BUI.Message.Show 可以自定义,比 BUI.Message.Alert 灵活

可以取消X 按钮,可以自定义按钮,不是一个确认和一个取消。(只有一个确认)

            BUI.Message.Show({
                msg:'some msg',
                icon:'success',
                closeable:false,
                cancel:function(){
                    return false;
                },
                buttons:[{
                    text:'确定', 
                    elCls : 'button button-primary', 
                    handler : function(){ 
                        this.hide();
                         if(top.topManager && result.code == 'success'){
                             top.topManager.reloadPage();
                         }
                    }
                }]
            })

 

posted on 2023-06-01 16:58  zno2  阅读(33)  评论(0编辑  收藏  举报

导航