嗨,我是 javascript 新手。我写了一个简单的jQuery代码,但它不起作用。当我运行它时,我得到一个空白页。有人可以帮帮我吗
<html>
<head>
<script type = "text/javascript" src="http://code.jquery.com/jquery-1.9.1.js">
</script>
</head>
<body>
<script type = "text/javascript">
<div id = "myElement">
<input id = "click" type = "button" value = "Click">
</div>
$(document).ready(function()
{
function sayHello(){
alert("Hello jQuery");
}
$("#click").bind("button",sayHello);
});
</script>
</body>
</html>