问题描述chrome中监听keyup事件,像a键不会触发事件问题出现的环境背景Chrome:Version 71.0.3578.98 (Official Build) (64-bit)macOs:10.13.6相关代码 <script>
window.addEventListener('keydown', function (event) { console.log('down:', event.key)
}) window.addEventListener('keypress', function (event) { console.log('press:', event.key)
}) window.addEventListener('keyup', function (event) { console.log('keyup:', event.key)
}) </script>实际看到的错误信息又是什么印象笔记的Chrome插件Evernote Web Clipper导致无法监听
添加回答
举报
0/150
提交
取消