日期:2014-05-16 浏览次数:20427 次
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input").keydown(function(){
var data=$("input").val();
$("span").text(data);
});
});
</script>
</head>
<body>
<input type="text" />
<span></span>
</body>
</html>