<script type="text/javascript" src="jquery-1.3.2.js"></script>
<input id=a type="text" value='sss'/>
<script type="text/javascript">
$('#a').keyup(
function(event){
alert(String.fromCharCode(event.which))
})
</script>请大家帮忙看看 谢谢
<input id=a type="text" value='sss'/>
<script type="text/javascript">
$('#a').keyup(
function(event){
alert(String.fromCharCode(event.which))
})
</script>请大家帮忙看看 谢谢
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<input id=a type="text" value='sss'/>
<script type="text/javascript">
$('#a').keypress(
function(event){
document.title = String.fromCharCode(event.which);
});
</script>
小写: document.title = String.fromCharCode(event.which + 32);