• <small id='xthn0'></small><noframes id='xthn0'>

      <i id='xthn0'><tr id='xthn0'><dt id='xthn0'><q id='xthn0'><span id='xthn0'><b id='xthn0'><form id='xthn0'><ins id='xthn0'></ins><ul id='xthn0'></ul><sub id='xthn0'></sub></form><legend id='xthn0'></legend><bdo id='xthn0'><pre id='xthn0'><center id='xthn0'></center></pre></bdo></b><th id='xthn0'></th></span></q></dt></tr></i><div id='xthn0'><tfoot id='xthn0'></tfoot><dl id='xthn0'><fieldset id='xthn0'></fieldset></dl></div>
      • <bdo id='xthn0'></bdo><ul id='xthn0'></ul>
    1. <tfoot id='xthn0'></tfoot>
      1. <legend id='xthn0'><style id='xthn0'><dir id='xthn0'><q id='xthn0'></q></dir></style></legend>

      2. mui消息框alert,confirm,prompt,toast实例

        时间:2024-12-21
            <bdo id='sMk0n'></bdo><ul id='sMk0n'></ul>
            <i id='sMk0n'><tr id='sMk0n'><dt id='sMk0n'><q id='sMk0n'><span id='sMk0n'><b id='sMk0n'><form id='sMk0n'><ins id='sMk0n'></ins><ul id='sMk0n'></ul><sub id='sMk0n'></sub></form><legend id='sMk0n'></legend><bdo id='sMk0n'><pre id='sMk0n'><center id='sMk0n'></center></pre></bdo></b><th id='sMk0n'></th></span></q></dt></tr></i><div id='sMk0n'><tfoot id='sMk0n'></tfoot><dl id='sMk0n'><fieldset id='sMk0n'></fieldset></dl></div>

                <small id='sMk0n'></small><noframes id='sMk0n'>

                1. <legend id='sMk0n'><style id='sMk0n'><dir id='sMk0n'><q id='sMk0n'></q></dir></style></legend>
                  <tfoot id='sMk0n'></tfoot>
                    <tbody id='sMk0n'></tbody>

                2. mui消息框alert,confirm,prompt,toast实例
                  <script type="text/javascript" charset="utf-8">
                              //mui初始化
                              mui.init({
                                  swipeBack: true //启用右滑关闭功能
                              });
                              var info = document.getElementById("info");
                              document.getElementById("alertBtn").addEventListener('tap', function() {
                                  mui.alert('欢迎使用Hello MUI', 'Hello MUI', function() {
                                      info.innerText = '你刚关闭了警告框';
                                  });
                              });
                              document.getElementById("confirmBtn").addEventListener('tap', function() {
                                  var btnArray = ['否', '是'];
                                  mui.confirm('MUI是个好框架,确认?', 'Hello MUI', btnArray, function(e) {
                                      if (e.index == 1) {
                                          info.innerText = '你刚确认MUI是个好框架';
                                      } else {
                                          info.innerText = 'MUI没有得到你的认可,继续加油'
                                      }
                                  })
                              });
                              document.getElementById("promptBtn").addEventListener('tap', function(e) {
                                  e.detail.gesture.preventDefault(); //修复iOS 8.x平台存在的bug,使用plus.nativeUI.prompt会造成输入法闪一下又没了
                                  var btnArray = ['取消', '确定'];
                                  mui.prompt('请输入你对MUI的评语:', '性能好', 'Hello MUI', btnArray, function(e) {
                                      if (e.index == 1) {
                                          info.innerText = '谢谢你的评语:' + e.value;
                                      } else {
                                          info.innerText = '你点了取消按钮';
                                      }
                                  })
                              });
                              document.getElementById("toastBtn").addEventListener('tap', function() {
                                  mui.toast('欢迎体验Hello MUI');
                              });
                          </script>
                   
                  上一篇:layui实现根据table数据判断按钮显示情况的方法 下一篇:没有了

                  相关文章

                3. <i id='rcQrQ'><tr id='rcQrQ'><dt id='rcQrQ'><q id='rcQrQ'><span id='rcQrQ'><b id='rcQrQ'><form id='rcQrQ'><ins id='rcQrQ'></ins><ul id='rcQrQ'></ul><sub id='rcQrQ'></sub></form><legend id='rcQrQ'></legend><bdo id='rcQrQ'><pre id='rcQrQ'><center id='rcQrQ'></center></pre></bdo></b><th id='rcQrQ'></th></span></q></dt></tr></i><div id='rcQrQ'><tfoot id='rcQrQ'></tfoot><dl id='rcQrQ'><fieldset id='rcQrQ'></fieldset></dl></div>
                  • <bdo id='rcQrQ'></bdo><ul id='rcQrQ'></ul>
                  <tfoot id='rcQrQ'></tfoot>

                  1. <legend id='rcQrQ'><style id='rcQrQ'><dir id='rcQrQ'><q id='rcQrQ'></q></dir></style></legend>
                    1. <small id='rcQrQ'></small><noframes id='rcQrQ'>