Answer the question
In order to leave comments, you need to log in
Why is lodash debounce not working in vue?
import _ from 'lodash'
...
created: function() {
_.debounce(function() {
console.log('test222');
}, 500);
},
methods: {
test: function() {
_.debounce(function() {
console.log('test222');
}, 500);
}
}
Answer the question
In order to leave comments, you need to log in
This code doesn't work. At all.
test: function() {
_.debounce(function() {
console.log('test222');
}, 500);
}
test: _.debounce(function() {
console.log('test222');
}, 500)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question