Jquery $().each()与$.each(data,function(i,obj))区别

在遍历DOM时,通常用$(selector).each(function(index,element))函数;

在遍历数据时,通常用$.each(dataresource,function(index,element))函数。

http://blog.csdn.net/zjh_1110120/article/details/50550108

原文地址:https://www.cnblogs.com/hym-pcitc/p/5997198.html