rotate:function(callback).....这段看不懂,求指点?callback是什么呢?
rotate:function(callback){
reWalk();
$boy.addClass("charector boy-rotate");
//监听转身完成
if(callback){
$boy.on(animationEnd,function(){
callback();$(this).off()})}
}
rotate:function(callback){
reWalk();
$boy.addClass("charector boy-rotate");
//监听转身完成
if(callback){
$boy.on(animationEnd,function(){
callback();$(this).off()})}
}
2016-11-01
举报