window[‘inputRule‘] = function(value){ return value+ ‘%‘; }
vue文件中定义全局方法:
mounted(){
window[‘inputRule‘] = function(value){
return value+ ‘%‘;
}
}
2021-11-12 07:05:19
window[‘inputRule‘] = function(value){ return value+ ‘%‘; }
vue文件中定义全局方法:
mounted(){
}