Vue——input 中的lazy

加入lazy后把searchKey变成change事件改变值

<input v-model.lazy="searchKey" type="text">
<h1>
    {
   
   {searchKey}}
</h1>

data() {
return {
searchKey: ''
}
}

猜你喜欢

转载自blog.csdn.net/qq_43201350/article/details/120398818
今日推荐