<div id="mao"> {{title}} </div> <script> const { createApp } = Vue const mao = createApp({ data(){ return { title: 'Hello, Vue3' } } }) let vm = mao.mount('#mao') console.log(vm) </script>
<div id="mao"> {{title}} </div> <script> const Mao = { data() { return { title: 'Helloooooo, Vue3' } } } Vue.createApp(Mao).mount('#mao') </script>
本文由 猫斯基 原创发布。
著作权均归用户本人所有。独家文章转载,请联系本站管理员。获得授权后,须注明本文地址! 本文地址:https://www.maosiji.com/2661.html