<script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
<!-- 如果要得到checkbox的状态,要用change事件 -->
<div id="app">
<input type="checkbox" v-model="checkState" @change="change">
</div>
<script>
var vm=new Vue({
el:"#app",
data:{
checkState:false
},
methods: {
change(){
console.log(this.checkState)
}
},
})
</script>