vue v-model directives cannot update the iteration variable 'x' itself

[b][size=medium][color=blue]new Vue({
el: '#app',
data: {
settings: {
runs: [1, 2, 3]
}
},
methods: {
removeRun: function(i) {
console.log("Remove", i);
this.settings.runs.splice(i,1);
}
}
});





[/color]
[color=red]

[/color]
[color=blue]










{{run}}
[/color][/size][/b]

你可能感兴趣的:(Vue)