0
我使用下面的代码,但什么也没发生......jQuery的爆炸效果不工作
$(document).ready(function(){
$("#btn4").click(function(){
$(".shake").show("explode", { pieces: 16 }, 2000);
});
});
.shake {
height: 100px;
width: 100px;
background: #666;
margin: 20px;
}
<button id="btn4">Shake</button>
<div class="shake"></div>
' “爆炸”'是不是一个有效的参数为'秀'在jQuery的核心()答案。你有没有包含jQuery UI? –
是的,包括jquery UI .. – user3714631
你应该使用.toggle而不是.show –