better-scroll影响vue中radio和checkbox的双向数据绑定

我的解决办法:radio


<input v-model="answer" type="radio" name="answer" value="1" @focus="answer=1">
<input v-model="answer" type="radio" name="answer" value="2" @focus="answer=2">

checkbox

<input  type="checkbox" v-model="tobuy" @change="tobuy=$event.target.checked">
posted @ 2017-10-24 13:25  云行月翔  阅读(536)  评论(0编辑  收藏  举报