Skip to content

Commit bea8187

Browse files
authored
Update async.md
根据后面generator和async的写法,这里似乎应该用of。
1 parent 550df8c commit bea8187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/async.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ function chainAnimationsPromise(elem, animations) {
11711171
var p = Promise.resolve();
11721172

11731173
// 使用then方法,添加所有动画
1174-
for(var anim in animations) {
1174+
for(var anim of animations) {
11751175
p = p.then(function(val) {
11761176
ret = val;
11771177
return anim(elem);

0 commit comments

Comments
 (0)