The difference between $.each() and $().each, $.each is a general iteration function that can be used to approximately iterate objects and arrays, this function and $().each are dedicated to iteration and execution jquery object functions. This function can be used to iterate any object. The callback of this function contains two parameters: the first is the key (object) or index (array), and the second is the value.