合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 标准 API | FN | 说明 | | :-------------- | :--------------------------------------------------------------------------- | | `observe` | 绑定监听,自定义配置项。回调函数的第一个参数为 `MutationRecord[]`。 | | `observeAll` | 绑定监听,监听所有变化。回调函数的第一个参数为 `MutationRecord[]`。 | | `attribute` | 绑定监听,监听 attribute 变化。回调函数的第一个参数为 `MutationRecord[]`。 | | `attributeFilter` | 绑定监听,监听指定 attribute 变化。回调函数的第一个参数为 `MutationRecord[]`。 | | `childList` | 绑定监听,监听节点的增减变化。回调函数的第一个参数为 `MutationRecord[]`。 | | `character` | 绑定监听,监听文本变化。回调函数的第一个参数为 `MutationRecord[]`。 | ### 变种 API > 变种 API 与 标准 API 相互对应,唯一的区别就是回调函数的第一个参数数据不同。 | FN | 说明 | | :--------------- | :------------------------------------------------------------------------- | | `eobserve` | 绑定监听,自定义配置项。回调函数的第一个参数为 `MutationRecord`。 | | `eobserveAll` | 绑定监听,监听所有变化。回调函数的第一个参数为 `MutationRecord`。 | | `eattribute` | 绑定监听,监听 attribute 变化。回调函数的第一个参数为 `MutationRecord`。 | | `eattributeFilter` | 绑定监听,监听指定 attribute 变化。回调函数的第一个参数为 `MutationRecord`。 | | `echildList` | 绑定监听,监听节点的增减变化。回调函数的第一个参数为 `MutationRecord`。 | | `echaracter` | 绑定监听,监听文本变化。回调函数的第一个参数为 `MutationRecord`。 | ### 管理 API | FN | 说明 | | :--------- | :----------------------------- | | `reconnect` | 重连监听,用于断开后的重新连接 | | `disconnect` | 断开监听,断开后可重连 | | `remove` | 移除监听,移除后不可重连 |