These are the 7 attributes of the object, but the 6th 4.1.85 will change. In this way, how can we get the 6th attribute without relying on the attribute name? . . .
Using the object.key(object) method, the returned results are sorted, so it is still not fixed every time I retrieve it! !
Also, objects are unordered and may go wrong
The attribute name should be unchanged, right? What should be obtained is the corresponding value?
Then you use the elimination method, loop through all the attributes of the current object, exclude the inherent attributes, and then get the unknown attribute, provided that your other attribute names are fixed.
Exclusion method or regular matching (if there are fixed rules)
The default key is fixed, so it can be traversed through $.each(), as follows:
Even if the object is out of order, it can be traversed through $.each(), and then judged by conditions. Hope it will be adopted.
Use Object.entries(obj)
The output is:
The matching order can be guaranteed.
In addition, the properties of Object are not guaranteed to be ordered (different from guaranteed to be unordered)