google-chrome - Object.observe 在 chrome 50 中移除

标签 google-chrome deprecated object.observe

我在 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.

https://github.com/Reactive-Extensions/RxJS/

关于google-chrome - Object.observe 在 chrome 50 中移除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36195945/

相关文章:

google-chrome - URL 是否有注释字符?

java - 使用 Selenium Webdriver 控制 Chrome Devtools

callback - 订阅已弃用 : Use an observer instead of an error callback

javascript - Object.observe on document.location

javascript - 即使在 Angular Directive(指令)中使用preventDefault(),Chrome也会在拖动时加载图像

javascript - Chrome 扩展...从 JS 执行 CSS?

ruby-on-rails - 使用 ActiveSupport::Deprecation 标记已弃用的方法

c++ - 如何将原始字符串文字传递给 [[deprecated(message)]] 属性?

JavaScript 对象镜像/单向属性同步

javascript - Object.Observe 同步回调