Created
August 11, 2020 06:10
-
-
Save PKTseng/0c422b4e176758520f2c63d17e76de2c to your computer and use it in GitHub Desktop.
select-月份
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"> | |
<select v-model="selectMonth"> | |
<option v-for="month in 12" >{{month}}</option> | |
</select> | |
<h1>{{selectMonth}}</h1> | |
</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:{ | |
selectMonth: 1, | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment