Last active
August 11, 2020 05:58
-
-
Save PKTseng/bb8ec6101b2f5a4cffca6459e780534d to your computer and use it in GitHub Desktop.
select-arry
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> | |
<option v-for="number in numbers" :value="number">{{number}}</option> | |
</select> | |
</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:{ | |
numbers: [2020, 2021, 2022], | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment