Knockout template using data-bind to image src property not working

后端 未结 1 1877
感动是毒
感动是毒 2020-12-23 18:34

I cannot see what is wrong here but the image does not display using the following Knockout template:



        
相关标签:
1条回答
  • 2020-12-23 19:36

    Only a few attributes can be bound directly; try using attr - it will let you set any attribute on an element.

    <img width="16px" height="16px" data-bind="attr:{src: imagePath}" />  
    
    0 讨论(0)
提交回复
热议问题