Object.getNotifier()

已废弃
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Object.getNotifer() 方法用于创建可人工触发 change 事件的对象,但该方法在浏览器中已被废弃。

语法

Object.getNotifier(obj)

参数

obj
获取通知的对象。

返回值

与传入对象相关联的通知对象。

描述

通知对象可触发 Object.observe() 所观察到的人工变动。

规范

Strawman proposal specification.

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 36 [1] 未实现 未实现 23 未实现
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 未实现 36 [1] 未实现 未实现 23 未实现

[1] Deprecated in Chrome 49.

相关链接