国产女人18毛片水真多18精品, 一区二区三区中文字-亚洲精品女国产, 欧美熟妇老熟妇88888久久久久, 一级毛片免费观看亚洲欧美国产精品,大波霸美女视频,日韩欧美激情V影院,熟女人伦21p,亚洲精品女国产,国产 乱子伦 在线

網頁設計

iframe調用父頁面方法

時間:2025-01-24 03:10:36 網頁設計 我要投稿

iframe調用父頁面方法

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

  window.parent.xxxxx();//xxxxx()代表父頁面方法

  具體列子如下,其中包括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) {//單機事件

  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調用父頁面的方法07-28

iframe子父頁面調用實例10-14

iframe里的頁面調用父窗口09-22

用js互相調用iframe頁面的方法08-30

php調用父類方法08-04

Python中子類怎樣調用父類方法09-04

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

java調用的方法09-04

java調用的幾個方法07-27