mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
commit
3204a6b5e4
@ -1171,7 +1171,7 @@ function chainAnimationsPromise(elem, animations) {
|
|||||||
var p = Promise.resolve();
|
var p = Promise.resolve();
|
||||||
|
|
||||||
// 使用then方法,添加所有动画
|
// 使用then方法,添加所有动画
|
||||||
for(var anim in animations) {
|
for(var anim of animations) {
|
||||||
p = p.then(function(val) {
|
p = p.then(function(val) {
|
||||||
ret = val;
|
ret = val;
|
||||||
return anim(elem);
|
return anim(elem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user