摘要: getWeeks() { const date = new Date() const currentYear = date.getFullYear() let currentMonth = date.getMonth() + 1 if (currentMonth < 10) currentMonth 阅读全文
posted @ 2020-07-09 14:35 小智大愚 阅读(370) 评论(0) 推荐(0)
摘要: 使用场景:文本输入框获得焦点,扫码后自动显示 本质:扫码枪扫码相当于是模拟键盘输入,使用文本框keydown、keyup事件(当然不局限于文本框) 特点:扫码枪触发键盘事件时,最后一个键会是'Enter',不同的硬件设备可能会不一样 冲突问题:怎样区分扫码时触发的键盘事件与正常的键盘事件? 1、手动 阅读全文
posted @ 2020-06-28 23:29 小智大愚 阅读(2418) 评论(0) 推荐(0)