摘要:
Vue.prototype.back = function (route) { if (window.history.length > 1) { this.$router.back(); } else { this.$router.push(route); } } 阅读全文
posted @ 2020-06-04 16:55
Peter_Yang0942
阅读(3570)
评论(0)
推荐(0)
摘要:
防抖(debounce):所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 /** * @desc 函数防抖 * @param func 函数 * @param wait 延迟执行毫秒数 * @param immediate true 阅读全文
posted @ 2020-06-04 13:39
Peter_Yang0942
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号