JS监听用户按下ESC $(document).ready(function(){}).keydown(function (e) { if (e.which === 27){ console.log('按下了ESC'); } });