var j=[{"key":"sinaid","type":"0","value":"1910738505"}, {"key":"sinaname","type":"0","value":"我在这里"}, {"key":"data","type":"0","value":'{"top":"10"}'}, {"key":"token","type":"0","value":token}]; $.getJSON(url,function(res) { for( var x in res.data){ alert(res.data[x]['campaign']); html+='<li class="clearfix">'; html+='<img src="images/tx.jpg" alt="" class="fl tx" />'; html+='<div class="ofh">'; html+='<h4>我参与了:</h4>'; html+='<h3><a href="'+res.data[x]['campaign']+'">'+res.data[x]['companynick']+'<img src="images/v.png" alt="" class="v" /></a></h3>'; html+='<h4>我参与了:</h4>'; html+='<p><a href="#">'+res.data[x]['campaign']+'</a></p><p id="test"></p>'; html+='</div>'; html+='</li>'; } document.getElementById('getpartake').innerHTML=html; },"json", function(e) { },"post",j,'');