JS export 异步导出

function getUrl () {
  req().then(res => {
    console.log(res);async

  }).catch(err => {
    console.log(err);spa

  })
}get

 

export async function myReq () {it

  await getUrl();io

  return '123';console

}function

相关文章
相关标签/搜索