我创建了一个新组件,我希望能够通过 aura:attribute 从静态资源和自定义标签传递图像。这是我尝试过的,但它不起作用。如何使图像/文本显示?
<aura:attribute name="profileImage" type="string" default="Standard_Profile" />
<aura:attribute name="categoryName" type="string" default="Standard_Name" />
<img src="{!$Resource + !v.profileImage}" alt="profile pic"/>
<h3>{!$Label.'categoryName'}</h3>
我对 Salesforce 很陌生。