在iframe子页面获取父页面元素
代码如下:

 
Js代码
$('#objId', parent.document);  

 

在父页面 获取iframe子页面的元素
代码如下:
Js代码
$("#objid",document.frames[0].document)


 

from:http://hi.baidu.com/eyescode/blog/item/81ba20ebd68d4b34b90e2d20.html

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-09-22
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2021-09-20
  • 2022-01-25
  • 2021-09-13
  • 2021-12-31
  • 2021-09-12
  • 2022-12-23
相关资源
相似解决方案