jquery — parent.document,父視窗彈窗寫法
阿新 • • 發佈:2018-11-11
$('.attachment', parent.document).click(function(e){ _layer.open({ type: 1, title: '檢視附件', area: ['40%', '400px'], maxmin: true, content: doContent, shadeClose:true, success:function(){ window.parent.frames.initPhotoSwipeFromDOM('.my-gallery'); } }) });