<script lang="ts">
const myself = ref();
// 移除自身
myself.value?.remove();
</script>
<template>
<div ref="myself">1024程序员节<div>
</template>
Vue3组合式API销毁自身
最新推荐文章于 2024-06-12 16:13:25 发布
<script lang="ts">
const myself = ref();
// 移除自身
myself.value?.remove();
</script>
<template>
<div ref="myself">1024程序员节<div>
</template>