HTML
CSS
JavaScript
play_arrow
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>对话框 - mdui.dialog()</title>
  <link rel="stylesheet" href="../assets/mdui-v0.4.2/css/mdui.min.css"/>
</head>
<body class="mdui-theme-primary-indigo mdui-theme-accent-pink">

<div class="mdui-container">
  <button class="mdui-btn mdui-color-theme-accent mdui-ripple" id="example-dialog">open</button>
</div>

<script src="../assets/mdui-v0.4.2/js/mdui.min.js"></script>
</body>
</html>
CSS

    
JavaScript
mdui.JQ('#example-dialog').on('click', function(){
  mdui.dialog({
    title: 'title',
    content: 'content',
    buttons: [
      {
        text: '取消'
      },
      {
        text: '确认',
        onClick: function(inst){
          mdui.alert('点击确认按钮的回调');
        }
      }
    ]
  });
});