Array A (this.slots[0].values) is newly created in the A method,
For example:
this.slots[0].values.push(newValue)
Print after creation There is no problem in coming out:
Then use it in other methods, method B,
When printed, the array becomes:
Compared:
What is the problem? No operations were performed during this period
天蓬老师2017-07-05 10:51:48
It may be a problem with this pointer, var self = this, and then try using self to do this