常规加入了eslint的,所以传值的时候需要注意
new promise((resolve, reject) => {
reject('')
})
这个时候只需要将
reject(new Error(''))
在接收的时候需要注意
.catch(req => {
console.log(req.message)
}
常规加入了eslint的,所以传值的时候需要注意
new promise((resolve, reject) => {
reject('')
})
这个时候只需要将
reject(new Error(''))
在接收的时候需要注意
.catch(req => {
console.log(req.message)
}