摘要:
1 // resizeObserver.ts 2 // 监听元素大小变化的指令 3 const map = new WeakMap() 4 const ob = new ResizeObserver((entries) => { 5 for (const entry of entries) { 6 阅读全文
posted @ 2024-02-01 14:17 Hhuizi 阅读(436) 评论(0) 推荐(0) 编辑
摘要:
1 // resizeObserver.ts 2 // 监听元素大小变化的指令 3 const map = new WeakMap() 4 const ob = new ResizeObserver((entries) => { 5 for (const entry of entries) { 6 阅读全文
posted @ 2024-02-01 14:17 Hhuizi 阅读(436) 评论(0) 推荐(0) 编辑 |
||