vue中,如果碰到调用data中变量为undefined,
第一个检测的就是你的赋值变量的大小写问题
onKeyInput(event){
this.seachList = event.target.Value;
console.log(this.seachList)
},
这里取到的值就是undefined
需要把Value变成value
版权声明:本文为Heartnottowake原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
vue中,如果碰到调用data中变量为undefined,
第一个检测的就是你的赋值变量的大小写问题
onKeyInput(event){
this.seachList = event.target.Value;
console.log(this.seachList)
},
这里取到的值就是undefined
需要把Value变成value