Created
March 22, 2017 12:42
-
-
Save edrdesigner/fd75a9d5f9e0e694f4b5594b0b12f3e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Promise(function(resolve,reject){ | |
setTimeout(function(){ console.log('1500'); resolve('ok1') },1500) | |
}).then( | |
function(result) { | |
new Promise(function(resolve,reject){ | |
setTimeout(function(){ console.log('1500'); resolve('ok2') },1500) | |
}).then(function(result){ | |
console.log(result); | |
new Promise(function(resolve,reject){ | |
setTimeout(function(){ console.log('6500'); resolve('ok3') },6500) | |
}).then(function(result){ | |
console.log('ok nivel 4'+ result) | |
},function (dismiss){}) | |
},function (dismiss){}) | |
}, function (dismiss) {} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment