1. 修復 點擊特效 烟花 無效的Bug

This commit is contained in:
Jerry 2019-11-05 14:57:59 +08:00
parent 8cb366bdda
commit da4a8d77d7
2 changed files with 18 additions and 1 deletions

View File

@ -152,7 +152,7 @@
transform: translateX(-254px)
opacity: 1
// pcmobile-menussidebar
// pcmobile-menussidebar
#sidebar
left: -300px !important

View File

@ -1,3 +1,19 @@
function debounce(func, wait, immediate) {
var timeout
return function () {
var context = this
var args = arguments
var later = function () {
timeout = null
if (!immediate) func.apply(context, args)
}
var callNow = immediate && !timeout
clearTimeout(timeout)
timeout = setTimeout(later, wait)
if (callNow) func.apply(context, args)
}
};
function throttle(func, wait, options) {
var timeout, context, args, result;
var previous = 0;
@ -81,6 +97,7 @@ function snackbarShow(text, showAction, duration) {
}
window.debounce = debounce
window.throttle = throttle