学习时长:2h
解决问题:今天学习了部分VUE知识
代码量:150行
下面是一些控件的实例
<div id="app"> <h3>count值为:{{count}}</h3> <button v-on:click="jianCount">-1</button> <button @click="count+=1">+1</button> </div> <script> const vm={ data:function () { return{ count:0, } }, methods:{ jianCount(){ this.count-=1 } } } const app=Vue.createApp(vm) app.mount('#app') </script>
标签:count,12,const,23,软工,vm,app From: https://www.cnblogs.com/kun1790051360/p/17697826.html