ie下:

var doc=document.getElementById("frame1").contentWindow.document;
alert(x.getElementById('xxx'));

 

非ie下(标准script)

 

var doc=document.getElementById("frame1").contentDocument;
alert(x.getElementById('xxx'));

 

 

如果就jquery就可以兼容了

 var doc=$("#frame1").contents();

alert(x.find('xxx'));

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
猜你喜欢
  • 2022-01-31
  • 2022-12-23
  • 2021-07-13
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
相关资源
相似解决方案