Despite using an array for keydown (or keyup) functions my code still refuses to let me move while jumping

后端 未结 0 1187
日久生厌
日久生厌 2021-02-07 02:15

My code is as follows:

var map = [];
document.body.onkeydown = document.body.onkeyup = function(e){
  e = e || event; // to deal with IE
  map[e.key] = e.type ==          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题