调用某个iframe的方法

document.getElementById('commentIframe').contentWindow.hasLogined();

原文地址:https://www.cnblogs.com/xiaodou00/p/13471005.html