1 layer.open({2 type: 2
3 ,title: false //不显示标题栏
4 ,closeBtn: false
5 ,area: [‘460px‘, ‘45%‘]6 ,shade: 0.5
7 ,id: ‘LAY_layuipro·‘ //设定一个id,防止重复弹出
8 ,btn: [‘确定‘,‘取消‘]9 ,btn1: function(index, layero){10
11 var body = layer.getChildFrame(‘body‘, index);12 var iframeWin = window[layero.find(‘iframe‘)[0][‘name‘]];//得到iframe页的窗口对象,执行iframe页的方法:
13
14 var companyId=iframeWin.document.getElementById("companyId").value;15 var grade=iframeWin.document.getElementById("grade").value;16 //alert(grade);
17 // 执行某些操作49 }50 ,btnAlign: ‘l‘
51 ,moveType: 1 //拖拽模式,0或者1
52 ,content: basePath+‘manage/settingGrade?companyId=‘+companyId+‘&grade=‘+grade53 ,success: function(layero){54 var btn = layero.find(‘.layui-layer-btn‘);55 btn.find(‘.layui-layer-btn0‘).attr({56 //
57 });58