提交 09e4a292 编写于 作者: B big_sun_962464

Fri Jul 12 13:56:00 CST 2024 inscode

上级 f2c9350b
<template> <template>
<div> <div>
<h2>Com1</h2> <h2 ref="h2Ref" @click="msg+='1'">Com1-{{ msg }}</h2>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineProps, computed, defineEmits, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, onMounted, onUpdated } from 'vue' import {ref, defineProps, computed, defineEmits, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, onMounted, onUpdated, onBeforeMount, onBeforeUpdate } from 'vue'
const msg = ref("欢迎使用VUE3.0")
const h2Ref = ref()
onBeforeMount(()=>{
debugger
})
onMounted(()=>{ onMounted(()=>{
debugger debugger
}) })
onUnmounted(()=>{ onBeforeUpdate(()=>{
debugger debugger
}) })
onUpdated(()=>{ onUpdated(()=>{
debugger debugger
}) })
onActivated(() => { onActivated(() => {
debugger debugger
console.log('Com1-onActivated')
}) })
onDeactivated(() => { onDeactivated(() => {
debugger debugger
console.log('Com1-onDeactivated')
}) })
onBeforeUnmount(()=>{ onBeforeUnmount(()=>{
debugger debugger
console.log('Com1-onBeforeUnmount')
}) })
onUnmounted(()=>{ onUnmounted(()=>{
debugger debugger
console.log('Com1-onUnmounted')
}) })
</script> </script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册