<button onclick="console.log('这是帮助信息')">帮助信息</button>
<label>
<input type="radio" name="choice"> 同意
</label>
<label>
<input type="radio" name="choice"> 不同意
</label>
<button accesskey="h" onclick="console.log('这是帮助信息')">帮助信息</button>
<label accesskey="y">
<input type="radio" name="choice"> 同意
</label>
<label accesskey="n">
<input type="radio" name="choice"> 不同意
</label>
题目:
请根据提供的 html 代码实现下述效果:
Alt + H,控制台输出对应信息;Alt + Y选中“同意”单选框;Alt + N选中“不同意”单选框。参考答案: