获取iframe中的contentWindow

function getIframeWindow(iframeElement){
return iframeElement.contentWindow || iframeElement.contentDocument.parentWindow;
}

posted @ 2016-06-20 20:12  cglworkBook  阅读(909)  评论(0编辑  收藏  举报