Heim > Fragen und Antworten > Hauptteil
P粉2935505752023-09-05 10:43:04
// CDN Vue Import const { createApp, ref } = Vue const app = createApp({ setup() { const msg = ref("hello world") return { msg } }, }).mount('#app')
<script src="https://unpkg.com/vue@3.3.4/dist/vue.global.prod.js"></script> <div id="app"> <div>{{ msg }}</div> <input v-model="msg" /> </div>