I have no idea if this is possible at all, but it would save me from a lot of stress and bad code. Is it possible to monitor whenever an array gets updated? For example, method A changes the array a=[1,2,3]
to a=[1,2,3,4
], is it possible to have a sort of delegate that gets triggered when a
is updated?
问问题
8171 次