4th*_*ace 1 html javascript jquery
我在下面的例子中做错了什么?在这种情况下,jquery代码需要超过页脚div.
<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>
Run Code Online (Sandbox Code Playgroud)
Nea*_*eal 11
错字:
#(document).ready(function(){
Run Code Online (Sandbox Code Playgroud)
应该:
$(document).ready(function(){
Run Code Online (Sandbox Code Playgroud)
如果使用当前代码,您应该在浏览器窗口(或控制台)中看到某种错误.