我在 Chrome 中收到一条警告消息,这条消息指出 Object.observe
方法已弃用,并将于 2016 年 4 月左右在 Chrome 50 中删除。
您有替代方案来替代 Object.observe
吗?
谢谢
最佳答案
所以它被贬低了,并且由于一些性能问题将被删除。请查看此链接 http://www.infoq.com/news/2015/11/object-observe-withdrawn
我认为你应该研究一下 RxJS 库,它是 Observable
Using RxJS, you can represent multiple asynchronous data streams (that come from diverse sources, e.g., stock quote, tweets, computer events, web service requests, etc.), and subscribe to the event stream using the Observer object. The Observable notifies the subscribed Observer instance whenever an event occurs.
关于google-chrome - Object.observe 在 chrome 50 中移除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36195945/