을하면 iframe 콘텐츠 추가하면 마크 업입니다 : 이제나는 iframe.Following 내부 페이지를 표시하고
<iframe src="/home/index" width="700px" height="300px"/>
, 내가이은 iframe에 다른 페이지의 내용을 추가하려고 jQuery를 사용하여 :
$('iframe').bind('load',function()
{
$('iframe).contents().find('body').load('/user/profile');
});
javacript 파일 (예 : 'user/profile'페이지의 head 섹션에는 jquery.js, profile.js 등의 javascript 파일에 대한 참조가 포함되어 있습니다.) 이외의 페이지 (사용자/프로필) 콘텐츠가 렌더링되고 있습니다 .Firebug에서 iframe의 내용을 확인했습니다. 이 js 파일에 대한 참조가 없습니다. 도와주세요.