Pre Merge pull request !158 from 赤诚的心/N/A

pull/158/MERGE
赤诚的心 7 months ago committed by Gitee
commit 1624bd0129
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -235,9 +235,10 @@ export function debounce(func, wait, immediate) {
}
}
return function(...args) {
return function(...args1) {
context = this
timestamp = +new Date()
args = args1
const callNow = immediate && !timeout
// 如果延时不存在,重新设定延时
if (!timeout) timeout = setTimeout(later, wait)

Loading…
Cancel
Save