@deot/helper-resize
v1.1.3
Published
- `MutationObserver`: DOM元素的属性或者节点变化的检测 - `ResizeObserver`: 检测DOM尺寸变化JS
Downloads
2
Readme
@deot/helper-resize
MutationObserver
: DOM元素的属性或者节点变化的检测ResizeObserver
: 检测DOM尺寸变化JS
Resize
import { Resize } from '@deot/helper-resize';
// or
import { Resize } from '@deot/helper';
let off = Resize.of(el).on(() => {});
off();
其他
resize-observer-polyfill
: 监听方式