window.parent.xxxxx (); // xxxxx () представляет метод родительской страницы
Конкретные столбцы следующие, включая щелчок правой кнопкой мыши и щелкните события EasyUI
Parent.jsp
Часть кода тела
<body> <!-левый каталог-> <div Data-options = "Region: 'West', Split: True, название: 'Theme', ICONCLS: 'Icon-arrowin'> <!-Количество каталогов-> <ul id =" tree "> </ul> </div> <input type =" hidden "value =" $ {param.type} "Id ="-"/>->"-> "/>"-> "/>"/> "-"! data-options = "Region: 'Center', заголовок: 'Display' Display ', ICONCLS:' ICON-ORROWOUT '" style = "overflow: hidden"> <iframe name = "Leftiframe" id = "Leftiframe" src = "" Frameborder = "0"> </iframe> </div> <! onclick = "updateTheme ();" data-options = "iconcls: 'icon-edit'"> modify </div> <div onclick = "removeObjectNode ();" data-options = "iconcls: 'icon-tip'"> delete </div> </div> <script type = "text/javascript"> loadtree (); </script> </body>JS Часть:
Функция loadtree () {$ ('#tree'). Tree ({url: 'xxxxx.action, animate: true, lines: true, oncontextmenu: function (e, node) {e.preventdefault (); $ (this) .tree (' select ', node.target); / *** *** $ (this) .tree ('getParent', node.target); }}, Onclick: function (node) {// } child.jsp/ *** Обновить левую тему*/ $ (function () {window.parent.loadtree ();})