我在下面的例子中做了什么错?在这种情况下,jquery代码需要超出页脚div。如何使用JQuery隐藏元素?
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
</head>
<body>
<script>
#(document).ready(function(){
$('#footer').hide();
});
</script>
<div id="footer">testing footer</div>
</body>
</html>
我不明白为什么这个问题可以通过投票来关闭它。我正在学习JQuery,因为我读了这个问题,所以我不会做这个错误。 – 2013-03-06 20:29:22
许多非常好的问题都会得到相近的选票。只要忽略它们。 – 4thSpace 2013-03-06 21:16:53