如何将 html 页面包含到页面内容中?

pad*_*bro 2 sapui5

我的目标是将文档页面包含到 sap.m.Page 中。我有一个 sap.m.Page 到 XML 视图:

<Page id="idPageSidebar" title="" showNavButton="false" navButtonPress="doBack">
        <content>
           //here I want visualize myDocumentation.html page    
        </content>
    </Page>
Run Code Online (Sandbox Code Playgroud)

我将 myDocumentation.html 放入我的项目目录中。我如何将它包含到 sap.m.Page 中?

小智 5

使用 core:HTML 控件并通过 AJAX 添加内容,例如:http : //jsfiddle.net/C4FW7/

      <App>
     <Page title="SAPUI5 App">
         <core:HTML id="html" content="hello"/>
     </Page>
  </App>
Run Code Online (Sandbox Code Playgroud)


sap.ui.controller("my.own.controller", {
    onInit: function(){
         var that=this;
         $.get( "/8rmAU/show/light", function( data ) {
            that.getView().byId('html').setContent(data);
        });
    }
}); 
Run Code Online (Sandbox Code Playgroud)