iframe子页面之间值传递

<div style="width:100%;height: 100%;">
        <div style="width:74%;height: 70%;float: left"><iframe id ="a" name="priceManage" th:src="@{priceManage}" style="width:100%;height: 100%;"  frameborder="0"></iframe></div>
        <div style="float: right;width:26%;height: 70%;"><iframe id ="notify" name="notify" style="width:100%;height: 100%;"  frameborder="0"></iframe></div>
        <div id="bottom" style="float: bottom;width:100%;height: 30%;"><iframe id ="allOrder" name="allOrder" th:src="@{foreignMainOrderList}" style="width:100%;height: 100%;" frameborder="0"></iframe></div>
    </div>
// 获取priceManage,parent是index页面的window对象。"priceManage"表示<iframe>标签的name属性
 var fra = parent.frames["priceManage"];// 此时priceManage就是priceManage页面的window对象 
alert("aa"+fra.isPauseOrder);
posted @ 2020-01-03 15:29  寒冰射手(电脑)  阅读(437)  评论(0编辑  收藏  举报