由于 O.o 已被弃用,我们还必须观察 Javascript 对象的属性,还有哪些其他选项。
最佳答案
如 mdn 文档中所述:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe
The Object.observe() method was used for asynchronously observing the changes to an object. It provided a stream of changes in the order in which they occur. However, this API has been deprecated and removed from browsers. You can use the more general Proxy object instead.
关于javascript - Object.observe 的替代方案是什么,因为它已被弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43654977/