页面加载完后,调整页面
$(document).ready(function() {
window.parent.document.getElementById("win1").style.height = document.body.scrollHeight + 20 + "px";
window.parent.pageSetHeight();
});
//刷新父页面(写在子页面中)
window.opener.parentCallback();
列表页面(卸载父页面中)
function parentCallback(){
setTimeout(function(){window.location.reload();}, 1000);
}
转载于:https://blog.51cto.com/jianboli/1893766