<iframe id="patientMesIframe" name="patientMesIframe" src=""></iframe>
1.父页面调用iframe子页面的方法:
$("#patientMesIframe").attr("src","./patientMes.html");
$("#patientMesIframe").load(function () {
// patientMesIframe.window.childFunction();
document.getElementById("patientMesIframe").contentWindow.childFunction();
});
2.子页面调用父页面的方法:
parent.parentFunction();