vue-book
vue-book copied to clipboard
P72 代码是有错误的
<div id="app"> <input type="raido" v-model="picked" :value="value"> <label>单选</label> <p>{{picked}}</p> <p>{{value}}</p> </div> <script src="https://unpkg.com/vue/dist/vue.js"></script> <script> var app = new Vue({ el: '#app', data: { picked: false, value: 123 } }) </script>
- :value="value" conflicts with v-model on the same element because the latter already expands to a value binding internally
Vue是当前最新版