弄懂下面的代码,待续
var num = 0; function add(m){ console.log(m,num++); } new Promise(function(){}).then(add).then(add); new Promise(function(resolve,reject){ resolve('oh-no-----'); }).then(null,add).then(add).then(add).catch(add); Promise.resolve("Success").then(add).then(null).then(add).then(add).catch(add);