Sapui5 SAP UI5如何在xml视图中附加HTML

Sapui5 SAP UI5如何在xml视图中附加HTML,sapui5,vis.js,vis.js-timeline,Sapui5,Vis.js,Vis.js Timeline,我想在xml视图中使用vis.js库 这是XML视图: <mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:m="sap.m" controllerName="com.asas.mes.controller.timeline" xmlns="http://www.w3.org/1999/xhtml"> <m:Page> <div id="visualization"></div> </m:Page&

我想在xml视图中使用vis.js库

这是XML视图:

<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:m="sap.m" controllerName="com.asas.mes.controller.timeline" xmlns="http://www.w3.org/1999/xhtml">
<m:Page>
    <div id="visualization"></div>
</m:Page>
但我得到了这个错误:

错误代码:未捕获类型错误:t.appendChild不是函数

请尝试此操作

记住要包括名称空间核心

<mvc:View
...
xmlns:core="sap.ui.core"
...>

你看过这个吗?是的,但我没有完全理解。我想我无法正确加载库。我有更多的麻烦。
<mvc:View
...
xmlns:core="sap.ui.core"
...>
    <Page title="{i18n>title}">
        <content>
            <core:HTML id="idHTMLContent"/>
        </content>
    </Page>
    onInit: function(){
        this.byId("idHTMLContent").setContent("<div id='visualization'></div>");
    }
#visualization {
    background:green;
    width: 100%;
    height:200px;
}