我正在尝试显示存储在附件中的图像。我尝试了以下组合,但似乎没有任何效果:
<img src="'servlet/servlet.FileDownload?file='{productItem.product.attachmentId}"/>
<img src="/servlet/servlet.FileDownload?file={productItem.product.attachmentId}"/>
<img src=\{imageDownload}{productItem.product.attachmentId}/> <!--(imageDownload = '/servlet/servlet.FileDownload?file=';)-->
<img src="'https://ccdev3-abinbev-ei-crm.cs105.force.com/MyABIB2BCommunity/servlet/servlet.FileDownload?file='+{productItem.product.attachmentId}"/>
<img src="'https://ccdev3-abinbev-ei-crm.cs105.force.com/MyABIB2BCommunity/servlet/servlet.FileDownload?file='{productItem.product.attachmentId}"/>
<img src="https://ccdev3-abinbev-ei-crm.cs105.force.com/MyABIB2BCommunity/servlet/servlet.FileDownload?file={productItem.product.attachmentId}"/>```
输出:
https://i.stack.imgur.com/6q8kt.png