index.html

<div id="div1">

</div>
<iframe src="ajax2.html" name="frame2" frameborder="0"></iframe>

<script type="text/javascript">


    $("#div1").data("datagrid", {name: "叶龙龙"});

</script>

ajax2.html

 console.log($("#div1",parent["frame2"].document).data());

https://stackoverflow.com/questions/4101457/access-jquery-data-from-iframe-element

https://stackoverflow.com/questions/4941435/how-to-share-jquery-data-data-through-iframes

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-05-12
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-06-12
  • 2021-12-17
相关资源
相似解决方案