I found a small problem today.
Click the checkbox below the picture. What the
console prints is that
the checkbox is obviously selected, but the printed content is false. This is a bit interesting. Look at the code
<input
type="checkbox"
v- model="checked[i]"
name=""
@click="handleChecked"
class="checked">
Obviously there is no problem with the operation, but there is a problem, so I suspect it is asynchronous,
so add a timer to
see the printing effect
The last two lines are timer printing
Summary: v-model and @click execution order in vue
@click -> v-model
vue: @click and input: v-model execution order
Guess you like
Origin blog.csdn.net/weixin_46112649/article/details/114689173
Recommended
Ranking