Modify the key value of the object

Method 1: Assign the value of the key that needs to be changed to a new variable for caching, delete the original key, add a value of the key you want to modify to the obj object, and assign the value of the variable just cached to this new one the key

 Method 2: Encountered a better method in a follow-up project Update...

Guess you like

Origin blog.csdn.net/weixin_63443983/article/details/126628862