这样的情况一般都是你的JSON不完整所致。在获取数据时这样处理一下就好了 $.post(url,data,function(youjson){youjson=$.parseJSON(youjson);//然后继续处理你的代码就好了});