problem description
obviously registered the component and wrote the template, but it doesn"t work in html, and there is no prompt after typing . Even if you hit it all, it doesn"t work, just like not registering.
ps:
the environmental background of the problems and what methods you have tried
there is always this problem
related codes
/ / Please paste the code text below (do not replace the code with pictures)
< body >
<div id="app">
:{{total}}
<haha>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
Vue.component("hahaha",{
template:"<div><button @click="jia">+1</button></div>",
data:{
return{
count:0
}
},
methods:{
jia:function(){
this.countPP;
}
}
})
</script>
</body>