父级frame中的方法:
function hideOutline() {
$("#outline").hide();
$("#content").attr("style", "width: 97%;");
$(".replyUserList").find("table").attr("style", "left: 35px;");
$("#showOutline").show();
}parent.window.hideOutline();
调用时window可以省略,比如parent.hideOutline();也可以,而且parent可以有多级,用于有多级frame的情况,比如:parent.parent.hideOutline();
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/zzm628/article/details/46740581