1.父窗口获取iframe中的值:
$("iframe").contents().find("#test").val();
2.子窗口获取父窗口中的值:
window.parent.$("#test").val();
2.子窗口获取父窗口中的方法:
parent.FunctionName();