VUE3+防抖 根据浏览器自动获取高度
<script setup lang="ts">import { ref, reactive, onMounted} from 'vue';import _ from 'lodash';//基础const windowHeight = ref(0);//获取浏览器高度const GetHeigth = () => { windowHeight.value = document.documentElement.clientHeight; window.addEve.
原创
2021-10-12 09:49:03 ·
449 阅读 ·
2 评论