<legend id='y8RbN'><style id='y8RbN'><dir id='y8RbN'><q id='y8RbN'></q></dir></style></legend>

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

        <bdo id='y8RbN'></bdo><ul id='y8RbN'></ul>
    1. <tfoot id='y8RbN'></tfoot>
    2. <small id='y8RbN'></small><noframes id='y8RbN'>

      layui父页面获取layer.open弹窗中的值

      时间:2023-12-05

        <small id='2kE0h'></small><noframes id='2kE0h'>

          <legend id='2kE0h'><style id='2kE0h'><dir id='2kE0h'><q id='2kE0h'></q></dir></style></legend>

        1. <tfoot id='2kE0h'></tfoot>

            <tbody id='2kE0h'></tbody>
            <i id='2kE0h'><tr id='2kE0h'><dt id='2kE0h'><q id='2kE0h'><span id='2kE0h'><b id='2kE0h'><form id='2kE0h'><ins id='2kE0h'></ins><ul id='2kE0h'></ul><sub id='2kE0h'></sub></form><legend id='2kE0h'></legend><bdo id='2kE0h'><pre id='2kE0h'><center id='2kE0h'></center></pre></bdo></b><th id='2kE0h'></th></span></q></dt></tr></i><div id='2kE0h'><tfoot id='2kE0h'></tfoot><dl id='2kE0h'><fieldset id='2kE0h'></fieldset></dl></div>
                <bdo id='2kE0h'></bdo><ul id='2kE0h'></ul>
                layui父页面怎么获取layer.open弹窗中的值 ,下面小编为您解答:
                1、获取input中的值:【content页面】
                <div style="padding: 0 10px;margin-top:10px">
                    <input type="text" id="refuseReason" name="refuseReason" placeholder="请输入拒绝理由" class="layui-input">
                </div>
                父页面
                layer.open({
                    type:1,
                    title:"拒绝理由",
                    content:'<div style="padding: 0 10px;margin-top:10px">'+
                                            '<input type="text" id="refuseReason" name="refuseReason" placeholder="请输入拒绝理由" class="layui-input">'+
                                    '</div>',
                    area: ['500px', '150px'],
                    btn: ['提交', '取消'],
                    btnAlign:'c',
                    resize:true,
                    yes:(index,layero)=>{
                            // 获取content页面中id为refuseReason的值
                        const refuseReason = top.$('#refuseReason').val();
                    },
                    cancel:(index, layero)=>{}
                })
                2、获取select中选中的值:【content页面】
                  <select id="groupId" name="groupId" xm-select="group">
                      <span th:each="info : ${groupList}">
                <option th:text="${info.st_g_name}" th:value="${info.st_g_id}"></option>
                      </span>
                  </select>
                父页面
                layer.open({
                    type: 2,
                    title: "标题",
                    area: ['600px', '500px'],
                    content: "/page/layerOpen", //请求后端返回页面地址
                    btn: ['提交', '取消'],
                    yes: function(index, layero){
                        //得到iframe页的窗口对象,执行iframe页的方法:
                        var iframeWin = window[layero.find('iframe')[0]['name']];
                        // 获取页面中xm-select属性为group的下拉选择框选中的值
                        var selectGroupData = iframeWin.layui.formSelects.value('group', 'val');
                        console.log(selectGroupData);
                    }
                })

                上一篇:layui数据表格checkbox部分不可选,全选功能正常 下一篇:没有了

                相关文章

                <legend id='DL0GQ'><style id='DL0GQ'><dir id='DL0GQ'><q id='DL0GQ'></q></dir></style></legend>

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

                1. <small id='DL0GQ'></small><noframes id='DL0GQ'>

                    • <bdo id='DL0GQ'></bdo><ul id='DL0GQ'></ul>