mui对话框事件

mui.confirm('生成成功,是否跳转到订单页面?','',['跳转','取消'],function(e){
    if(e.index==0){
    //点击跳转
    }else if(e.index==1){
    //点击取消
    }
},'div'); 

在prompt中e.index获取点击的按钮,e.value获取输入框中的内容

其他的两个alert,prompt点击事件也和confirm类似,这里就不一一列举

posted on 2017-10-11 15:35  一曲笙箫  阅读(486)  评论(0编辑  收藏  举报