Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在发出一个返回图像 url 的 http 请求。我想在我的 html 页面中显示图像。有没有办法做到这一点?我想我想做的是(这不起作用但是..)img src={{result.imageurl}}
是的,你必须使用ng-src="{{result.imageurl}}"
ng-src="{{result.imageurl}}"
见http://docs.angularjs.org/api/ng.directive:ngSrc