iframe 父页面给ifram子页面传值或者赋值

console.log($(window.frames["mainFrame"].document).find("#name").text('换'))

1.在父窗口中操作 选中IFRAME中的所有单选钮 $(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");

2.在IFRAME中操作 选中父窗口中的所有单选钮 $(window.parent.document).find("input[@type='radio']").attr("checked","true");

转:https://www.cnblogs.com/mopagunda/p/4765130.html

posted @ 2022-03-25 16:12  星云惊蛰  阅读(391)  评论(0)    收藏  举报