hiit

在父窗口中操作 选中iframe中的id

$(window.frames["ifm"].document).find("#id").attr("value",$("#id").val());

在iframe中操作 选中父窗口中的所有单选钮 

$(window.parent.document).find("input[@type=\'radio\']").attr("checked","true"); 
$("#父级某id",parent.document).trigger("click");//获取iframe外层标签元素,并自动触发点击事件

 

HTML

  <iframe id="ifm" src="https://mee" frameborder="0" width="100%" height="100%" allowfullscreen="true" allowtransparency="true" scrolling="no">
            </iframe>

 用自己私人的服务器来测试吧,99买阿里云

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-09-07
  • 2021-12-22
  • 2021-12-26
  • 2021-12-22
  • 2018-01-26
猜你喜欢
  • 2021-06-24
  • 2021-08-27
  • 2021-12-26
  • 2021-12-26
  • 2021-11-19
  • 2021-09-27
  • 2018-06-04
相关资源
相似解决方案