Lodash 去抖动 节流
throttle
节流
_.throttle(event => {
$('#volume_progress_percent').css({ width: `${event.data.percent}%` }); // 更新bootstrap进度条UI
}, 80, { leading: true, trailing: true });
throttle
节流_.throttle(event => {
$('#volume_progress_percent').css({ width: `${event.data.percent}%` }); // 更新bootstrap进度条UI
}, 80, { leading: true, trailing: true });