1. <legend id='xjsr3'><style id='xjsr3'><dir id='xjsr3'><q id='xjsr3'></q></dir></style></legend>
      <bdo id='xjsr3'></bdo><ul id='xjsr3'></ul>

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

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

    <tfoot id='xjsr3'></tfoot>

      layer.open()如何实现自定义按钮及其点击事件

      layer.open()如何实现自定义按钮及其点击事件 layer.open({ skin: 'deloag_w480_h240', //自定义class title: '自定义按钮', content: ` layer.open()如何实现自定义按钮及其点击事件`, area: ['480px', '240px'], btn: ['Cancel', 'Confirm'], // 弹层外区域
    1. <legend id='DjHhU'><style id='DjHhU'><dir id='DjHhU'><q id='DjHhU'></q></dir></style></legend>
        <bdo id='DjHhU'></bdo><ul id='DjHhU'></ul>
            <tbody id='DjHhU'></tbody>

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

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

                layer.open()如何实现自定义按钮及其点击事件
                  layer.open({
                            skin: 'deloag_w480_h240', //自定义class
                            title: '自定义按钮',
                            content: ` layer.open()如何实现自定义按钮及其点击事件`,
                            area: ['480px', '240px'],
                            btn: ['Cancel', 'Confirm'],
                            // 弹层外区域关闭
                            shadeClose: true,
                            btn1: function (index, layero) {
                                layer.close(index)
                            },
                            btn2: function (index, layero) {
                                console.log('Confirm');
                                return false;
                            }
                        });
                btn:放置自定义按钮的名称。

                注意:按钮的点击事件命名必须是btn1,btn2等

                自定义按钮如何关闭弹框:
                return false禁止关闭弹框;
                return true或者  layer.close(index)关闭弹框
                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                layer.open()详细参数对照说明,希望在你使用中可以帮到您! layer.open({ type:,//基本层类型:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层) title:'标题',//或给标题加样式:['文本', 'font-size:18px;'] closeBtn: 0, //不显示关闭按
                vue页面Uncaught TypeError: Cannot read properties of undefined (reading install)报错,页面全空白。 然后发现是自己写的指令全局引用的原因 使用了export导出 export { preventReClick } 所以引用的时候不能 import preventReClick from '@/directives'V
                除了通过data-toggle和data-target来控制模态弹出窗之外,Bootstrap框架针对模态弹出框还提供了其他自定义data-属性,来控制模态弹出窗。比如说:是否有灰色背景modal-backdrop,是否可以按ESC键关闭模态弹出窗。有关于Modal弹出窗自定义属性相关说明如下所示

                  <bdo id='rdJsp'></bdo><ul id='rdJsp'></ul>
                  <tfoot id='rdJsp'></tfoot>
                  1. <legend id='rdJsp'><style id='rdJsp'><dir id='rdJsp'><q id='rdJsp'></q></dir></style></legend>
                      <tbody id='rdJsp'></tbody>

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

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