LoginSignup
0
0

More than 3 years have passed since last update.

IE11でテンプレートリテラルは使えない

Posted at

index.html
<!doctype html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <title>JavaScriptドリル</title>
</head>
<body>
  <script src="script.js">  </script>

</body>
</html>
script.js
//キーイベント
document.addEventListener('keydown',function(event){
    var keyName = event.key;
    if(event.ctrlKey){
        console.log(`keydown:${keyName}`);
    } else if (event.shiftKey) {
        console.log(`keydown:${keyName}`);
    } else {
        console.log(`keydown:${keyName}`);
    }
});
 ie

Chrome

image.png

IE

image.png

0
0
1

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