The difference between $.each() and $().each, $.each is a general iterative function that can be used to iterate objects and arrays approximately. This function and $().each are dedicated to iterating and executing. jquery object function. This function can be used to iterate over any object. The callback of this function contains two parameters: the first is key (object) or index (array), and the second is a value.
The code copy is as follows:
<script type="text/javasctip">
var json = {
<span style="white-space:pre"> </span>[
<span style="white-space:pre"> </span>'name':'tom',
<span style="white-space:pre"> </span>'school': 'middle school',
<span style="white-space:pre"> </span>'grade': 95
<span style="white-space:pre"> </span>]
<span style="white-space:pre"> </span>
}
</script>