3 回答
TA贡献1825条经验 获得超4个赞
<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>
TA贡献1880条经验 获得超4个赞
<template>
<div class="m-board">
<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>
</div>
</template>
<script>
export default {
data(){
return {
picked:false
}
},
updated(){
console.log(this.picked);
}
}
</script>
TA贡献1906条经验 获得超3个赞
<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>
添加回答
举报