layer.open type: ,content: test iframe.html ,success: function layero, index var body layer.getChildFrame body , index var iframeWin window layero.find iframe name 得到iframe頁的窗口對象,執行iframe頁的方法:iframeWi ...
2017-03-19 21:19 0 13638 推薦指數:
//調用父類方法 window.parent.exportData($('#shownum').val(),$('#splitstr').val()); //關閉iframe頁面var index = parent.layer.getFrameIndex(window.name); //獲取 ...
//調用父類方法 window.parent.exportData($('#shownum').val(),$('#splitstr').val()); //關閉iframe頁面var index = parent.layer ...
父頁面 子頁面 借鑒文章: https://fly.layui.com/jie/61122/ https://www.cnblogs.com/zhaow/p/9753836.html https://www.layui.com/doc/modules/layer.html ...
1.業務場景:父頁面list.jsp,子頁面operate.jsp 點擊查看詳情,此時在彈出一個窗,是iframe層的,彈出窗里面的內容是另一個頁面operate.jsp 如下圖所示: 我想要的效果是點擊子頁面operate.jsp的返回按鈕,此時關閉當前彈出窗,等於說又回到了第一張 ...
1. 彈出窗口中本身可以添加按鈕事件如下: 但是這里在點擊打印預覽時候,想獲取到頁面中到form表單中到值比較麻煩。 所有我就直接在彈出框中定義了button按鈕。 2. 調整后如下,先注釋掉父級的按鈕: 然后在彈出的框中添加button ...
layer.open與top.layer.open打開比較 ...
寬高度 area : ['100%', '100%']同時取消layer.full(index)就能自適應 ...