So, Clint's post about the IE issues with the site JavaScript prompted a question for me that's been sitting in the back of my mind for quite a while. I've been using the .prototype method for the ...
ボタンの個数分ループしているfor文から、addEventListnerを外します。 btnAction() 関数を作成します。 その中に、イベントリスナーと、classList.toggleを入れています。 For文には、作成したbtnAction()関数の呼び出しを追加します。 btnAction()呼び出し時に、各ボタンの ...
This JavaScript thing might just catch on. The world's most popular programming language is starting to look like a real programming language, with classes, modules, promises and more. There's even a ...