mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-06-02 00:22:48 +00:00
commit
aea773a435
@ -45,7 +45,7 @@ Promise实例生成以后,可以用then方法分别指定Resolved状态和Reje
|
|||||||
```javascript
|
```javascript
|
||||||
promise.then(function(value) {
|
promise.then(function(value) {
|
||||||
// success
|
// success
|
||||||
}, function(value) {
|
}, function(error) {
|
||||||
// failure
|
// failure
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user