Last active
August 11, 2020 02:26
-
-
Save PKTseng/6f1ac08872dcd7d107f0bf25addb92aa to your computer and use it in GitHub Desktop.
checkbox-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<h1>可以聯絡的時段:</h1> | |
<input type="checkbox" id="chk1" value="8:00~12:00" v-model="times"> | |
<label for="chk1">morning</label> | |
<input type="checkbox" id="chk2" value="13:00~ 18:00" v-model="times"> | |
<label for="chk2">afternoon</label> | |
<input type="checkbox" id="chk3" value="19:00~21:00" v-model="times"> | |
<label for="chk3">evening</label> | |
<h2>{{times}}</h2> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Vue({ | |
el:"#app", | |
data:{ | |
times: [], | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment