Change the different key names of array objects to a unified key name

Option One:

The test method, after changing it according to this method, there will be a constant situation, because the deep copy json.parse method is used halfway, and when the value in it is 0, it will be converted to unfined for me.

7f14eeefa2cf4c20a5ef8305c979af4a.png

Best solution 2: Replace the key name on the left with a unified name

c318a6bd0c644b82961c917a489f255e.png 

2c3dd969c4784a9eb0d9f327cceac308.png 

 

 

Guess you like

Origin blog.csdn.net/weixin_54368936/article/details/131002620