访问iframe里面的函数:

复制代码代码如下:

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

commentIframe为iframe的id.
要在 window.onload里面执行