从后台获取的数据是数组中嵌套数组


var str = "";
for(var i=0; i<data.length; i++) { str +="<div class='exfansCon clearfix'>" +    "<img src='"+urllogo+data[i].HeadImage+"' alt=''>" + "<div class='exfansText'>" + "<span>"+data[i].Name+"</span>" + "<div class='cropN'></div> " + "<i>粉丝:</i><em>"+data[i].fansCount+"</em>" + "</div> " + "<div class='myexAddAtten'>" + "<span>添加 + </span>" + "</div>" + "</div> " + "<hr>"; } $('.expertInt'
).html(str); $.each(data,function(a,b){   var value="";    $.each(b.alltag,function(c,d){   value+= d.name;   $(".cropN")[a].innerText=value;   });  });

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM