从使用vue3视角,我们先去演练场看下 vue playgroud: play.vuejs.org/
⚡从使用vue3视角,分析响应式过程和模块转换过程
<script setup>
import { ref,reactive } from 'vue'
const msg = ref('Hello World!')
const state =reactive({count:"123"})
</script>
<template>
<div>
<h1>{{ msg }}</h1>
<input v-model="msg" />
<h2>count:{{ state.count }}</h2>
</div>
</template>
<style scoped>
div{
color:red
}
</style>