在一个组件中,自定义指令,我想在自定义指令改变这个组件data中的某个值,如何改变?
created(){
this.index = 0;
},
directives :{
progress:{
inserted:function(el , binding){
//怎么改变index的值
}
},
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
今天想了下,貌似解决了。
set方法报错,请问具体怎么改变呢?