angularjs - using {{}} binding inside ng-src but ng-src doesn't load

后端 未结 2 1468
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-03 17:16

I have been trying to bind a value to the ng-src of an img HTML element to no avail.

HTML code:


      
2条回答
  •  不要未来只要你来
    2021-02-03 17:34

    Changing the ng-src value is actually very simple. Like this:

    
    
    
    
    
    
    
    
    
    

    Here is a jsFiddle of a working example: http://jsfiddle.net/Hx7B9/2/

提交回复
热议问题