子页面调用父页面方法:

  if(window.parent && window.parent.showEditor){
    window.parent.xxx();
  }

父页面调用子页面方法:

  父页面的iframe设置name,<iframe name=''test'></iframe>

  test.window.xxx();

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-08-27
猜你喜欢
  • 2021-12-17
  • 2021-08-27
  • 2021-08-17
  • 2021-08-19
  • 2021-10-04
  • 2022-12-23
  • 2021-08-27
相关资源
相似解决方案