:value
:value="data"在这种情况下就可以接受参数
<input type
="text" :value
="inputValue">
@change
通过在组件上绑定@change就能够监听组件发生变化并执行设定的function
<template
>
<input type
="text" :value
="inputValue" @change
="HandlerInput">
</template
>
<script
>
export default{
methods
:{
HandlerInput(e
){
console
.log(e
.target
.value
);
}
}
}
</script
>
created()
<script
>
export default{
created(){
}
}
</script
>