在讲解中并没有看到老师定义res就直接使用$.getJSON(url,data,function(res){}),不明白这是为什么?
http://www.w3school.com.cn/jquery/ajax_getjson.asp
去看看这个