function createDialog(src, width, height) {var _doc_width = $(document).width();var _doc_height = $(document).height();var _html = "<div id='bg' style='position: absolute; z-index: 10000; display: block; left: 0px; top: 0px; opacity: 0.5; height: " + _doc_width + "px; width: " + _doc_width + "px; background-color:#CCC;'></div>";_html += "<div id='ifdiv'style='z-index:10001;background-color:#FFF;border:solid 10px #cef;position: fixed; left:128px; top:32px;'>";_html += "<iframe src='" + src + "' frameborder='0' id='rest1' name='rest1' style='width:" + width + "px;height:" + height + "px;overflow:visible;'></iframe></div>";$('body').append(_html);}這段JS代碼我是在網上找的,觸發這個函數,直接出現彈出層,就是把crop這個視圖放在了里面,然后我想執行完這個方法完,直接關掉或隱藏彈出層,怎么做?求指教。。。貼出代碼和截圖。。。求指教啊。。。
執行完方法后關掉或隱藏彈出層iframe
米琪卡哇伊
2018-08-14 07:10:25