<!DOCTYPE html> <html> <body> <h1>Element 对象</h1> <h2>accessKey 属性</h2> <a id="w3s" accesskey="w" href="https://www.sou-xun.com/">(www.sou-xun.com)</a> <p>此链接的快捷键是:</p> <p id="demo"></p> <script> let key = document.getElementById("w3s").accessKey; document.getElementById("demo").innerHTML = key; </script> </body> </html>