夜间福利网站,免费动漫av,一级做a爰片久久毛片免费陪,夜夜骑首页,黄色毛片视频,插插插操操操,综合av色

iframe調用父頁面方法

時間:2025-12-14 09:04:26 網頁設計

iframe調用父頁面方法

  無論你將來用什么語言做網頁,都要先學習HTML(超文本標識語言),一種很簡單的語言,也是網頁設計的基礎,找本自己能看懂的教材,瀏覽為主,不用記住所有的概念,以下是小編整理的iframe調用父頁面方法,歡迎來閱讀!

  window.parent.xxxxx();/pic/strong>

  具體列子如下,其中包括easyUI的右鍵和單擊事件

  parent.jsp

  body部分代碼

  <body class="easyui-layout">

  <!-- 左側目錄 -->

  <p

  data-options="region:'west',split:true,title:'主題',iconCls:'icon-arrowIn'"

  style="width: 270px; background: #efefef">

  <!-- 目錄數(shù) -->

  <ul id="tree" class="easyui-tree"></ul>

  </p>

  <input type="hidden" value="${param.type }" id="themeType"/>

  <!-- 右側窗體 -->

  <p

  data-options="region:'center',title:'內容顯示',iconCls:'icon-arrowOut'" style="overflow: hidden">

  <iframe name="leftIframe" id="leftIframe" src="" frameborder="0" height="100%" width="100%"></iframe>

  </p>

  <!-- 右鍵菜單 -->

  <p id=rightCliMean class="easyui-menu" style="width:120px;">

  <p onclick="updateTheme();" data-options="iconCls:'icon-edit'" >修改</p>

  <p onclick="removeObjectNode();" data-options="iconCls:'icon-tip'" >刪除</p>

  </p>

  <script type="text/javascript">

  loadTree();

  </script>

  </body>

  js部分:

  ?

  function loadTree() {

  $('#tree').tree( {

  url : 'xxxxx.action,

  animate : true,

  lines : true,

  onContextMenu : function(e, node) {

  e.preventDefault();

  $(this).tree('select', node.target);

  /**

  * 不可以對根節(jié)點(默認主題)進行操作

  */

  var parent = $(this).tree('getParent',node.target);

  if(parent){

  if(node.text == '默認主題'){

  $.messager.alert("提示信息","默認主題不能進行操作!","warning");

  return false;

  }

  $('#rightCliMean').menu('show',{

  left: e.pageX,

  top: e.pageY

  });

  }

  },

  onClick:function(node) {/pic/p>

  var type = node.attributes.type;

  if("Schema" == type){

  var themeType = $("#themeType").val();

  $('#leftIframe').attr('src', 'xxxx.action');

  return;

  }

  }

  });

  }

  child.jsp

  /**

  * 刷新左側主題

  */

  $(function(){

  window.parent.loadTree();

  })

【iframe調用父頁面方法】相關文章:

iframe調用父頁面的方法01-27

iframe里的頁面調用父窗口01-31

iframe子父頁面調用實例12-21

用js互相調用iframe頁面的方法10-01

php調用父類方法03-12

Python中子類怎樣調用父類方法02-17

在子類中應該如何調用父類的構造方法12-11

java調用的方法10-31

java調用的幾個方法11-04