JQuery 动画实现
$(this.div_wrong).show().css({width:"0px", height:"0px"})
.animate({width:"260px",height:"300px"}, 150 )
.animate({width:"200px",height:"240px"}, 150 )
.animate({width:"240px",height:"280px"}, 150 )
.animate({width:"260px",height:"300px"}, 150 )
.animate({width:"0px",height:"0px"}, 350, ()=> {
$(this.div_wrong).hide() ;
$(this.btn_analyse).show() ;//做错了,把wrong动画显示完,不能直接跳到下一题.
( opt_origin == OriginType.Sprite ) && $(this.btn_next).html( "重做" ) ;
$(this.btn_next).show() ;
judgeCbk.call(this, false);//后面这个false表示题做错了
});