$$(function(){ $("#startbtn").rotate({ bind:{ click:function(){//绑定click单击事件 var a = Math.floor(Math.random() * 360); //生成随机数 $(this).rotate({ duration:3000,//转动时间间隔(转动速度) angle: 0, //开始角度 animateTo:3600+a, //转动角度,10圈+ easing: $$.easing.easeOutSine, //动画扩展 callback: function(){ //回调函数 alert('中奖了!'); } }); } } }); });