window.parent.xxxxx (); // xxxxx () representa o método da página pai
As colunas específicas são as seguintes, incluindo o clique com o botão direito e clique em eventos do easyui
parent.jsp
Parte do código corporal
<body> <!-Diretório esquerdo-> <div data-options = "Region: 'West', Split: True, Title: 'Theme', IconcCls: 'icon-arrowin'"> <!-Número de diretórios-> <ul id = "Tree"> </ul> </liv> <input Type = "Hidden") Data-Options = "Região: 'Centro', Título: 'Exibição de Conteúdo', icoCls: 'ICON-ARROWOUT'" Style = "Overflow: Hidden"> <iframe name = "leftiframe" id = "leftiframe" src = "" frameborder = "0"> </ifram> </div> <!-Menu-Menu-> OnClick = "UpdateTheme ();" Data-Options = "ICONCLS: 'icon-edit'"> modificar </div> <div onclick = "removerbjectNode ();" data-options = "icoNCls: 'icon-tip'"> excluir </div> </div> <script type = "text/javascript"> loadtree (); </script> </body>
Parte do JS:
função loadtree () {$ ('#árvore'). Árvore ({url: 'xxxxx.action, ânimo: true, linhas: true, ONCONTEXTMENU: function (e, node) {e.PreventDefault (); $ (this) .tree (' select ', node.Target) / ** ** ** ** ** ** ** ** Operação; isto) .tree ('getParent', node.target); }}, OnClick: function (nó) {// Evento independente var tipo = node.attributes.type; } Child.jsp/ *** Atualize o tema esquerdo*/ $ (function () {window.parent.loadtree ();})