简体   繁体   English

由于jQuery,dom通过角度给出GET错误每秒生成图像

[英]dom generated images sec by angular giving GET error because of jquery

I am using angularjs and jquery. 我正在使用angularjs和jquery。

I have a list of article generated with images inside like this : 我有这样的图像生成的文章列表:

<li ng-repeat="thing in things">
           <img src="thing.src" /> blablabal
        </li>

I have this error which really annoy me even if doesn't influence the user view : 我有这个错误,即使不影响用户视图,也确实使我感到烦恼:

GET http://localhost:3000/img/%7B%7B%thing.src%20%7D%7D 404 (Not Found) 

What could I do ? 我能做什么 ?

Change your code like there: 像下面那样更改代码:

<li ng-repeat="thing in things">
   <img ng-src="{{thing.src}}"/> blablabal
</li>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM