Object.observe remove in chrome 50

余生颓废 提交于 2019-12-10 20:01:06

问题


I had a warning message in Chrome, this one notice that Object.observe method is deprecated and will be removed in Chrome 50 around April 2016.

Have you an alternative solution to replace Object.observe ?

Thanks


回答1:


So it was depricated and will be removed because of some problem with perfomance. Please see this link http://www.infoq.com/news/2015/11/object-observe-withdrawn

I think you should look into RxJS library and it's 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/



来源:https://stackoverflow.com/questions/36195945/object-observe-remove-in-chrome-50

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!