简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <script> $(document).ready(function(){ $("input").keyup(function(event){ $("div").html("Key: " + event.which); }); }); </script> Enter your name: <input type="text"> <p>When you type in the field above, the div below will display the key number.</p> <div /> <footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
运行结果: