<script type="text/javascript">
            var o = $(window.frames["menu"])[0].contentWindow;
    </script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script type="text/javascript">
             var o = window.frames["menu"];
    </script>
    <![endif]-->
    <script type="text/javascript">
        o.doFunction();
  </script>

很奇怪,jquery并不是万能的,它在IE使用 $(window.frames["menu"])[0].contentWindow 也无法调用iframe里面的函数,会报函数未定义的错误。

难道非得使用这种hack方式才能解决问题?

相关文章:

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