Radio
<input type="radio" id="one" value="One" v-model="picked">
<label for="one">One</label>
<br>
<input type="radio" id="two" value="Two" v-model="picked">
<label for="two">Two</label>
<br>
<span>Picked: {{ picked }}</span>
我们可以用v-bind指令来绑定数据。如下代码:
<input type="radio" v-model="pick" v-bind:value="a">
绑定值为"T"的单选按钮。