//简单移动动画封装
function animate(obj, target) {
obj.move = setInterval(function () {
if (obj.offsetLeft >= target) {
clearInterval()仍然执行剩余代码的解决方案
最新推荐文章于 2023-05-03 09:14:48 发布
//简单移动动画封装
function animate(obj, target) {
obj.move = setInterval(function () {
if (obj.offsetLeft >= target) {