1>主页面获得iframe页面的内容:
设要寻找的元素id为elment:
$(this).content().find(“#element”);
2>iframe获得主页面内容:
设iframe在主页面里的id为ifr:
$("#ifr",window.parent.document);
3>在iframe里调用父页面方法和参数:
parent.method;
parent.value;
1>主页面获得iframe页面的内容:
设要寻找的元素id为elment:
$(this).content().find(“#element”);
2>iframe获得主页面内容:
设iframe在主页面里的id为ifr:
$("#ifr",window.parent.document);
3>在iframe里调用父页面方法和参数:
parent.method;
parent.value;