C If it is an object, a and b actually point to the same object. Using angular.copy to make a copy can solve the problem, but you may need to review whether this design is reasonable. Data-driven development should ensure that the data is consistent and unique. .
cIf it is a basic type, such as strings and numbers, the situation you mentioned should not happen
Use angular.copy
C If it is an object, a and b actually point to the same object. Using angular.copy to make a copy can solve the problem, but you may need to review whether this design is reasonable. Data-driven development should ensure that the data is consistent and unique. .
cIf it is a basic type, such as strings and numbers, the situation you mentioned should not happen