<html>
<head></head>
<script type="text/javascript" src="jquery-1.9.1.js" ></script>
<script type="text/javascript">
$(function(){
$('input').click(function(){alert("哈哈")});
});
</script>
<body>
<input type='button' name='button' value='按钮'/>
</body>
</html>