(1)lodash防抖实现
handleChange (property, value) {
this.debounce(property, value)
},
debounce: _.debounce(function (property, value) {
window.GDEGRAPHIC.setProperty(property, value)
}, 1000),
(2)延时器防抖实现
if (this.thottleTimer) {
clearTimeout(this.thottleTimer)
this.thottleTimer = null
}
this.thottleTimer = setTimeout(async () => {
this.getSyncTables()
}, 500)