我正在使用 ajax json 返回一些数据。使用 json 返回的对象具有我需要渲染的图像路径。这是我的 js 函数中的代码
data = '<div class="articleWrapper"><div class="articleImgThumb">' + '<img src="'+item.ImagePath;'" />' + '</div></div>';
我做错了什么,因为我认为这段代码呈现为
<div class="articleWrapper">
<div class="articleImgThumb"> // here should be img src code </div>
</div>
谢谢