$('iframe').load(function () {
  var x = document.getElementsByTagName('iframe')[0];
  var y = (x.contentWindow || x.contentDocument);
  y.body.style.backgroundColor="red";
});

 

不支持第三方引入的iframe。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-01-24
  • 2021-05-19
  • 2022-02-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案