提交 ff51500f 编写于 作者: B big_sun_962464

Fri Jul 12 14:52:00 CST 2024 inscode

上级 0751499b
......@@ -15,6 +15,7 @@ async function addMsg() {
debugger
console.log(h2Ref.value.innerHTML)
await nextTick()
debugger
console.log(h2Ref.value.innerHTML)
}
......@@ -74,6 +75,7 @@ onBeforeUnmount(() => {
*
* 当这个钩子被调用时,组件实例依然还保有全部的功能
*/
console.log(h2Ref.value)
debugger
})
onUnmounted(() => {
......@@ -85,6 +87,7 @@ onUnmounted(() => {
* 所有相关的响应式作用 (渲染作用以及 setup() 时创建的计算属性和侦听器) 都已经停止
* 可以在这个钩子中手动清理一些副作用,例如计时器、DOM 事件监听器或者与服务器的连接
*/
console.log(h2Ref.value)
debugger
})
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册