window.parent.xxxxxx (); // xxxxxx () repräsentiert die übergeordnete Seitenmethode
Die spezifischen Spalten sind wie folgt, einschließlich der Rechtsklick- und Klick-Ereignisse von EasyUi
Parent.jsp
Teil des Körpers Code
<body> <!-linke Verzeichnis-> <div dato-options = "Region: 'West', split: true, title: 'thema', iconcls: 'icon-arrowin'"> <!-Anzahl der Verzeichnisse-> <ul id = "baum"> </ul> </div> <input type Data-Options = "Region: 'Center', Titel: 'Inhaltsanzeige', iconcls: 'icon-arrrorowout'" style = "overflow: versteckt"> <iframe name = "linkIframe" id = "linkIframe" src = "" Frameborder = "0"> </iframe> </div> <! Onclick = "UpdateTheTheM ();" data-options = "iconcls: 'icon-edit'"> modify </div> <div onclick = "removeObjectnode ();" data-options = "iconcls: 'icon-tip'"> löschen </div> </div> <script type = "text/javaScript"> loadtree (); </script> </body>
JS Teil:
Funktion loadtree () {$ ('#baum'). Baum ({url: 'xxxxx.Action, animim: true, zeilen: true, oncontextMenu: Funktion (e, node) {e.preventDefault (); $ (dieses). $ (this) .Tree ('getParent', node.target); }}, Onclick: Funktion (Knoten) {// eigenständiger Ereignis var type = node.attributes.typ; } child.jsp/ *** das linke Thema aktualisieren*/ $ (function () {window.parent.loadtree ();})