<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <!--checkbox单选框-->
        <label for="agree"></label>
        <input type="checkbox" id="agree" v-model="isagree">同意协议
        <p>你选择的是:{{isagree}}</p>
        <button :disabled="!isagree">下一步</button>
        <br>
        <!--checkbox多选框-->
        <input type="checkbox" value="篮球" v-model="bobby">篮球
        <input type="checkbox" value="足球" v-model="bobby">足球
        <input type="checkbox" value="乒乓球" v-model="bobby">乒乓球
        <input type="checkbox" value="排球" v-model="bobby">排球
        <h2>你的爱好是:{{bobby}}</h2>
    </div>
<script src="vue.js"></script>
<script>
    const app=new Vue({
        el:'#app',
        data:{
            isagree:true,
            bobby:[]   /*多选框对应的是数组类型*/
        },
        methods:{
        }
    })
</script>
</body>
</html>