这个怎么也显示不出来

<div id="app" class="demo">
   <child @greet="sayHello"></child>
  </div>
   <script src="https://unpkg.com/vue@next"></script>
   <script>
   const app = Vue.createApp({});
   app.component('child', {
     data: function() {
       return {
         name: '张三'
       }
      },
       methods: {
         handleClick() {
           this.$emit('greet', this.name);
         }
       },
       template: '<button @click="handlerClick">开始欢迎</button>',
       sayHello(name) {
         alert("Hello," + name )
       }
   })
   
.mount('#app')
     </script>
上一篇:从工地实习月薪3K到一线企业年薪30W,我追上了那个曾经被赋予厚望的自己


下一篇:BATJ年薪30W+面试清单:JVM\MySQL\设计模式\分布式\微服务