---
title: "jquery遍历JSON"
author: "yancc"
date: "2011-04-10T14:39:26Z"
tags: []
categories: ["编程语言"]
slug: "jquery-json"
draft: false
lastmod: "2011-04-10T14:39:26Z"
id: 996076
url: "https://yancc.iteye.com/blog/996076"
---

1.遍历


```js

$.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>");
		});
	
	}
	});


```