iframefunction()是子页面的方法 $(window.parent.document).contents().find("#iframename")[0].contentWindow.iframefunction();