ES2018 新特性:Promise.prototype.finally()

Jordan Harband 提出了 Promise.prototype.finally 这一章节的提案。 如何工作? .finally() 这样用: promise .then(result => {···}) .catch(error => {