一:利用jquery方法获得
立即学习“前端免费学习笔记(深入)”;
1:取值
$(window.parent.document).find("#second_navigator").html();
立即学习“前端免费学习笔记(深入)”;
2:改变父页面元素
$(window.parent.document).find("#second_navigator").html(“我是从iframe里传来的值”);
立即学习“前端免费学习笔记(深入)”;
二:javaScript方法
立即学习“前端免费学习笔记(深入)”;
1:取值
window.parent.document.getElementById("second_navigator").innerHTML;
立即学习“前端免费学习笔记(深入)”;
2:改变父页面元素
window.parent.document.getElementById("second_navigator").innerHTML="我是从iframe里传来的值";











