摘要:
import Vue from "vue"; // vue自定义指令节流 Vue.directive("throttle", { bind: function(el, binding, vnode) { let { delay, fn } = binding.value; //参数:时间,执行函数 阅读全文
posted @ 2021-04-25 17:31
我只是笑笑
阅读(566)
评论(0)
推荐(0)
摘要:
import Vue from "vue"; // vue自定义指令防抖 Vue.directive("antiShake", { bind: function(el, binding, vnode) { let { delay, fn } = binding.value; //参数:时间,执行函数 阅读全文
posted @ 2021-04-25 17:29
我只是笑笑
阅读(1124)
评论(0)
推荐(0)

浙公网安备 33010602011771号