layui-弹窗携带参数

 1 layer.open({
 2       type: 2, 
 3       skin:'layui-layer-molv',
 4       content: setter.host+'/toBox',
 5       offset:'auto',
 6       area:['1000px', '584px'],
 7       title:["选择机构"],
 8       closeBtn:1,
 9       success:function(layero, index){//弹出时执行
10            var iframeWindow = window['layui-layer-iframe'+ index]
11            ,subBody = layero.find('iframe').contents();
12            subBody.find("#id").val("123");
13 //                          var body = layer.getChildFrame('body', index);
14 //                          var iframeWin = window[layero.find('iframe')[0]['name']]; 
15 //                          var subBody = layero.find('iframe').contents();
16 //                          body.find('.score').val(data.score)
17       },
18       end:function(){//销毁后执行
19       }
20 });

 

posted on 2020-10-20 10:36  yf_lan  阅读(1665)  评论(0编辑  收藏  举报