Fork me on GitHub
摘要: 概述 今天我无意中看到了只执行一次事件的简便方法,记录下来,供以后工作时参考,相信对其他人也有用。 一般方法 先来回顾一下一般方法: const $once = function (target, event, fn) { const that = this; function newFn (... 阅读全文
posted @ 2020-10-08 23:14 馒头加梨子 阅读(353) 评论(0) 推荐(0) 编辑