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()如何实现自定义按钮及其点击事件

      时间:2023-10-30
    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)关闭弹框
                上一篇:Syntax error, unrecognized expression: #layui-layer[object O 下一篇:没有了

                相关文章

                  <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>

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

                  1. <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>