Uncaught (in promise)一般是pormise写法有问题
new Promise(function(resolve, reject) {
reject(‘该prormise已被拒绝’);
}).catch(function(reason) {
console.log(‘catch:’, reason);
});
Uncaught (in promise)一般是pormise写法有问题
new Promise(function(resolve, reject) {
reject(‘该prormise已被拒绝’);
}).catch(function(reason) {
console.log(‘catch:’, reason);
});