data(){
return{
type:"1",
yanxuan:"",
qiugou:"",
}
}
if the data is like this, you can listen.
data(){
return{
parameter:{
type:"1",
yanxuan:"",
qiugou:"",
}
}
}
Why can"t you listen when it"s written like this? How to write it. ,
solve?
watch:{
parameter:function(){
...
}
},
if you write in this way, the data in param will not be changed. Watch will not execute
. Can you only write one data at a time?