获取iframe中的contentWindow

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

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