상위 페이지 내에서 iframe 요소를 실행하는 방법

iframe이 상위 페이지

<iframe이 SRC = " {{url_for ( 'room_info.person_open_record'resiId = resiId)}} " 스타일 = " 폭 : 100 % " ID = " face_record " > </ iframe> 해당

iframe이 페이지 클래스를 클릭

<IMG SRC = " {{}} i.imgUrl  클래스 = " table_img_face " />

JS 코드

$ ( ' #face_record ' ) .contents (). 찾기 ( ' .table_img_face ' ) .click (함수 () {
                 var에 img_url = $ (  ) .attr ( ' SRC ' )
                $ ( ' .pop_img ' ) .children ( ' IMG ' ) .attr ( ' SRC ' , img_url)
                $ ( ' .bounced ' ) .show ();
            })

추천

출처www.cnblogs.com/menxiaojin/p/12085068.html