iframe框架页面与父页面通讯:
在iframe中查找父页面元素的方法:
$(‘#id’, window.parent.document)
在iframe中调用父页面中定义的方法和变量:
parent.method
parent.value
iframe框架页面与父页面通讯:
在iframe中查找父页面元素的方法:
$(‘#id’, window.parent.document)
在iframe中调用父页面中定义的方法和变量:
parent.method
parent.value