We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e640ce7 commit 843c652Copy full SHA for 843c652
docs/promise.md
@@ -52,7 +52,7 @@ promise.then(function(value) {
52
});
53
```
54
55
-`then`方法可以接受两个回调函数作为参数。第一个回调函数是`Promise`对象的状态变为`resolved`时调用,第二个回调函数是`Promise`对象的状态变为`rejected`时调用。其中,第二个函数是可选的,不一定要提供。这两个函数都接受`Promise`对象传出的值作为参数。
+`then`方法可以接受两个回调函数作为参数。第一个回调函数是`Promise`对象的状态变为`resolved`时调用,第二个回调函数是`Promise`对象的状态变为`rejected`时调用。这两个函数都是可选的,不一定要提供。它们都接受`Promise`对象传出的值作为参数。
56
57
下面是一个`Promise`对象的简单例子。
58
0 commit comments