The case is as follows:
let pro = {
inParams:{
"ip":'',
}
}
var proLeft = pro, proRight = JSON.parse(JSON.stringify(pro))
proLeft.inParams.ip = leftIp
proRight.inParams.ip = rightIp
In this way, if the value of the ip attribute is changed, the two objects will not affect each other.
The reason is the pointing problem of the object address, just change the address pointing of one of the objects.