2
爲什麼這不起作用?我該如何修復它?關於jquery bind unbind
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("button").unbind("click");
$("div").show().fadeOut("slow",function(){
$("button").bind("click");
});
})
})
</script>
<style>
div{width:600px;height:600px;display:none;background:red;}
</style>
</head>
<body>
<button>test</button>
<div></div>
</body>
</html>
你一直是SO的用戶1年,仍然沒有代碼格式? – RPM1984 2010-11-08 03:41:42
什麼不起作用?有沒有錯誤? – rahul 2010-11-08 03:41:48