|
|
1.遍历
$.ajax({url:'brandServlet',type:'get',datatype:'json',success:function(data){var brandList=eval(data);$.each(brandList,function(index){$('#brandul').append("<li><a href='#'><img alt='"+brandList[index].name+"' src='/Dcshop/"+brandList[index].images+"' /></a></li>");});}}); |
|