我需要实现对任何对象状态的更改跟踪。 我将如何实现它?Typescript中的自定义对象更改跟踪
例如:
let complexObject = {
/// ... mant many arrays and propertiess
}
let hash = convertToHash(complexObject)
let trackingArray = []
trackingArray.push(hash);
/// what from here and how to imlement it?
这个问题有点含糊 - 你的意思是改变跟踪?你试图达到的最终目标是什么? –