Header SAPUI5 应用程序上的图像

Header image on SAPUI5 application

我只是想在 index.html 上添加图像。我在 webcontent 下创建了一个图像文件夹,并将图像添加到图像文件夹中。我通过以下方式调用它:

<HBox >
<Image
                                        src="{./images/abc1.jpg}"
                                        width="100%"
                                        height="100%"/>
</HBox>

但是在浏览器上什么也没有显示。请指教

当您尝试绑定来自模型的数据时,您使用了大括号。 由于您没有使用模型来绑定数据。您可以将其删除并尝试。 同样的代码在这里提到:-

<HBox>
   <Image src="./images/abc1.jpg" width="100%" height="100%"/>
</HBox>