Object.watch() for all browsers?

前端 未结 8 780
囚心锁ツ
囚心锁ツ 2020-11-22 13:06

Please note that Object.Watch and Object.Observe are both deprecated now (as of Jun 2018).


I was looking for an easy way to monitor an object

8条回答
  •  礼貌的吻别
    2020-11-22 13:26

    (Sorry for the cross-posting, but this answer I gave to a similar question works fine here)

    I have created a small object.watch shim for this a while ago. It works in IE8, Safari, Chrome, Firefox, Opera, etc.

提交回复
热议问题