fix 工具库防抖函数 无法正确获取传参
This commit is contained in:
parent
5e7113935c
commit
496fed0667
|
@ -271,7 +271,8 @@ export function debounce(func, wait, immediate) {
|
|||
}
|
||||
}
|
||||
|
||||
return function(...args) {
|
||||
return function(...args1) {
|
||||
args = args1
|
||||
context = this
|
||||
timestamp = +new Date()
|
||||
const callNow = immediate && !timeout
|
||||
|
|
Loading…
Reference in New Issue