Window.parent.xxxxx (); // xxxxx ()는 상위 페이지 메소드를 나타냅니다
EasyUI의 마우스 오른쪽 버튼 클릭 및 클릭 이벤트를 포함하여 특정 열은 다음과 같습니다.
parent.jsp
바디 코드의 일부
<body> <!-왼쪽 디렉토리-> <div data-options = "region : 'west', split : true : true, tile, 'temeply', iconcls : 'icon-arrowin'"> <!-디렉토리 수-> <ul id = "tree"> </ul> </div> <입력 유형 = "hidden"value = "$ {param.type}}" data-options = "region : 'center', title : 'content display', iconcls : 'iCon-arrowout'"style = "Overflow : Hidden"> <iframe name = "leftiframe"id = "leftiframe"src = ""frameborder = "0"> </iframe> 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 : animate : true, lines : true, oncontextmenu : true, node) {e.preventDefault (); $ (this) .tree ('select ', node.target); / *** 작동 (default tobol). $ (this). }, ONDER (NODE) {// 독립형 이벤트 var 유형. } child.jsp/ *** 왼쪽 테마를 새로 고침*/ $ (function () {window.parent.loadTree ();})