冷酷御姐

文章
6
资源
0
加入时间
4年0月9天

封装move函数—基于原生JS

// 参数: // obj:要执行动画的对象; // attr:要执行动画的样式,如"left" "top" "height" "width" //target: 执行动画的目标位置 //speed:移动的速度 //callback:回调函数,将在动画执行完毕后执行 // var timer; function move(obj,attr,ta