Dojox 레이아웃을 사용하면 레이아웃의 내용을 대체 할 수 있습니까?

StackOverflow https://stackoverflow.com/questions/136928

  •  02-07-2019
  •  | 
  •  

문제

페이지에 Dojox 레이아웃 기능이로드되는 DIV가 있습니다.

<div dojoType="dojox.layout.ContentPane"
                 adjustPaths="true"
                 renderStyles="true"
                 executeScripts="true"
                 href="my/page/containing/scripts/and/styles/in/a/sub/folder.html">
                Initial content, will be replace by href.
                paths in folder.html will be adjusted to match this page
        </div>

나중에이 DIV의 내용을 다른 페이지 (다른 URI)의 다른 컨텐츠로 바꾸는 데 사용할 수있는 API가 있습니까?

알렉스

도움이 되었습니까?

해결책

div에 ID를 추가하고 (예 : id = "mypane")를 작성하고 다음을 씁니다.

dijit.byId("myPane").setHref("path/page.html");

알렉스

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top