Untitled

 avatar
unknown
plain_text
3 years ago
523 B
2
Indexable
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
	<p> </p>
<script>
function whichButton(event){
	if(event == 65){
	}
	else if(event == 83){
		
	}
	else if(event == 68){
		
	}
	else if(event == 70){
		
	}
}
</script>
</head>
<body onkeyup="whichButton(event)">
	
<p><b>注释:</b>在测试这个例子时,要确保右侧的框架获得了焦点。</p>
<p>在键盘上按一个键。消息框会提示出该按键的 unicode。</p>
</body>

</html>
Editor is loading...