var waitJson
==========================================
waitJson = new Promise(function(resolve, reject) {
waitJson.resolve(json);
});
==========================================
Promise.all([waitJson]).then(function(values) {
})
.catch(function(error) {
// One or more promises was rejected
console.log(error)
res.status(400).send(errors)
});
沒有留言:
張貼留言