1. 程式人生 > >jquery — parent.document,父視窗彈窗寫法

jquery — parent.document,父視窗彈窗寫法

$('.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');
                            }
                        })
                    });