function GetTxtValue(passvalue) {
var frmSelectCourseUnit;
var frmContent;
$.each(top.frames, function (index) {
if (this.name == 'frmSelectCourseUnit')
frmSelectCourseUnit = this;
else if (this.name == 'frmContent')
frmContent = this;
});
frmContent.GetTxtValue(passvalue);
}Jquery 得到当前页面的Iframe,并调用iframe中的方法
最新推荐文章于 2021-02-27 23:07:59 发布
本文介绍了一个使用jQuery实现的跨iframe调用方法GetTxtValue的例子。该方法通过遍历顶级窗口的所有iframe来查找名为'frmSelectCourseUnit'和'frmContent'的iframe,并在其找到后,进一步调用'frmContent'中的GetTxtValue方法。
704

被折叠的 条评论
为什么被折叠?



