Skip to content

Commit 843c652

Browse files
committed
docs(promise): fix #1028
1 parent e640ce7 commit 843c652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/promise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ promise.then(function(value) {
5252
});
5353
```
5454

55-
`then`方法可以接受两个回调函数作为参数。第一个回调函数是`Promise`对象的状态变为`resolved`时调用,第二个回调函数是`Promise`对象的状态变为`rejected`时调用。其中,第二个函数是可选的,不一定要提供。这两个函数都接受`Promise`对象传出的值作为参数。
55+
`then`方法可以接受两个回调函数作为参数。第一个回调函数是`Promise`对象的状态变为`resolved`时调用,第二个回调函数是`Promise`对象的状态变为`rejected`时调用。这两个函数都是可选的,不一定要提供。它们都接受`Promise`对象传出的值作为参数。
5656

5757
下面是一个`Promise`对象的简单例子。
5858

0 commit comments

Comments
 (0)