我有json数据,我已经创建了Div到html文件,现在我要显示为div 例如
{
"id": 1,
"url": '/somefolder/selfie.png',
"text": 'My Selfie'
}
{
"id": 2,
"url": '/somefolder/selfie2.png',
"text": 'My Selfie 2'
}

<div id="img-holder">
<img src="" />
<span id="img-txt"></span>
</div>
&#13;
如何将每个数据重复到div?