Created
August 11, 2020 05:48
-
-
Save PKTseng/d73d8535bffe1cf1b08eabe560f5d819 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="number"> | |
<option disabled value="">select number</option> | |
<option value="001">2020</option> | |
<option value="002">2021</option> | |
<option value="003">2022</option> | |
<!--<option>2020</option> | |
<option>2021</option> | |
<option>2022</option> --> | |
</select> | |
<h1>{{number}}</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:{ | |
number: '', | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment