摘要: 监听元素的滚动事件是很常见的一个需求了。下面介绍3种在vue3中监听元素滚动事件的方法。 1.添加事件监听:Event Listener <script setup> import { ref, onMounted, onUnmounted } from 'vue' const content = 阅读全文
posted @ 2023-04-03 18:01 前端[色色] 阅读(14562) 评论(0) 推荐(0) 编辑