Vueでのv-forの使い方、取得
617 ワード
v-for
- {{item}}
new Vue({
el:"#app",
data:{
val:"",
list:[]
},
methods:{
sub(){
this.list.push(this.val)
this.val=''
}
}
})