LoginSignup
0
0

More than 1 year has passed since last update.

javascript演習 1日目/30日

Last updated at Posted at 2021-10-16

覚えたことたち

window.addEventListener('keydown',function(e){
    キーを押した時の動作
  })

htmlのaudioタグについて


const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);

audio.currentTime = 0;
audio.play();

トランジションが終わったらクラスを外したりする

keys.forEach(key => key.addEventListener('transitionend',function))

e.keyCodeとかも知らなかった

window.addEventListener('keydown',function(e){
    キーを押した時の動作
  })
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0