1. <tfoot id='9oTcJ'></tfoot>

      <small id='9oTcJ'></small><noframes id='9oTcJ'>

      <legend id='9oTcJ'><style id='9oTcJ'><dir id='9oTcJ'><q id='9oTcJ'></q></dir></style></legend>

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

          <bdo id='9oTcJ'></bdo><ul id='9oTcJ'></ul>

        layer弹出层嵌套调用问题

        时间:2023-11-07
        <legend id='3JYKI'><style id='3JYKI'><dir id='3JYKI'><q id='3JYKI'></q></dir></style></legend>

              <bdo id='3JYKI'></bdo><ul id='3JYKI'></ul>

                <tbody id='3JYKI'></tbody>

                <tfoot id='3JYKI'></tfoot>

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

                  layer弹出层嵌套调用问题的实例代码
                  //首次调用
                  layer.open({
                                          type: 2,
                                          title: '打印',
                                          content: '/Account/AddPrintInfo?cardId=' + data.Base_CardId,
                                          area: ['90%', '30%'],
                                          success: function (layero, index) {
                                          },
                                          end: function () {
                                          },
                                          btn: ['确定','关闭']
                                          , yes: function (index, layero) {
                                              var thisIndex = index;
                                              layer.confirm('确定保存么', { icon: 3, title: '提示' }, function (index) {
                                                  var body = layer.getChildFrame('body', index);
                      
                                                  var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();]
                                                  if (iframeWin.AddPrintInfoAction()) {
                                                      //关闭confirm
                                                      layer.close(index);
                                                      setTimeout(function () {
                                                          //关闭layer
                                                          layer.close(thisIndex);
                                                          //当弹出的第一个页面完成操作后判断结果,如果结果为真则关闭之前弹出的内容,弹出新的内容页(第二次调用)
                                                          layer.open({
                                                              type: 2,
                                                              title: '打印',
                                                              content: '/Account/AddPrintInfoPage?cardId=' + data.Base_CardId,
                                                              area: ['98%', '98%'],
                                                              success: function (layero, index) {
                                                              },
                                                              end: function () {
                                                              },
                                                              btn: ['打印']
                                                              , btn1: function (index, layero) {
                                                                  
                                                                  var body = layer.getChildFrame('body', index);
                                                                  console.log("layero", layero);
                                                                  
                                                                  //此处在回调中获得的layero,为当前弹出层的内容,通过该内容获取iframe标签信息,与单层弹出相同    
                                                                  var iframeWin = window[layero.find('iframe')[0]['name']];
                                                                  console.log("iframeWin", iframeWin);
                                                                  iframeWin.printPage();
                                                              }
                                                          });
                                                      }, 2 * 1100);
                   
                                                  }
                                                  else {
                                                      layer.close(index);
                                                      return false;
                                                  }
                                              });
                                          }
                                          
                                      });
                   
                  上一篇:layui 弹窗iframe版 父子窗口传值与互调实例代码 下一篇:没有了

                  相关文章

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

                  <tfoot id='tVEQ8'></tfoot>

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

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