Skip to content

Promise

Mrlhz edited this page Sep 22, 2018 · 3 revisions

Promise基本语法

new Promise(
    function (resolve, reject) {
      resolve()
      reject()
    }
  )

  .then(function A() {

  }, function B() {

  })

Promise

Clone this wiki locally