Javascript 智能表SAPUI5

Javascript 智能表SAPUI5,javascript,xml,sapui5,Javascript,Xml,Sapui5,我想使用智能表,但失败了。下面是xml代码: <mvc:View controllerName="com.taspen.acb.modules.Dosir.FileUpload" xmlns:l="sap.ui.layout" xmlns:u="sap.ui.unified" xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:smartTa

我想使用智能表,但失败了。下面是xml代码:

<mvc:View
    controllerName="com.taspen.acb.modules.Dosir.FileUpload"
    xmlns:l="sap.ui.layout"
    xmlns:u="sap.ui.unified"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns:core="sap.ui.core"
    xmlns="sap.m"
    xmlns:smartTable="sap.ui.comp.smarttable"
    class="viewPadding">
    <l:VerticalLayout>

              <smartTable:SmartTable entitySet="TableList"
                          smartFilterId="smartFilterBar" tableType="Table" useExportToExcel="true"
                          useVariantManagement="false" useTablePersonalisation="true" header="Line Items"
                          showRowCount="true" persistencyKey="SmartTableAnalytical_Explored"
                          enableAutoBinding="true" />           

    </l:VerticalLayout>
</mvc:View>

错误显示:错误:未能从resources/sap/ui/comp/smarttable/smarttable.js:404加载“sap/ui/comp/smarttable/smarttable.js”-未找到

我正在使用sap-ui-core.js 2.3.0版。我想使用智能表,因为我想显示列表。(我的列表太多)

多谢各位

问候,,
Bobby

您必须在index.html文件中显式导入comp库

<script id="sap-ui-bootstrap"
    [...]
    data-sap-ui-libs="sap.m, sap.ui.comp"
    [...]
</script>