The Promise.reject() function is the most concise way to create a rejected promise that contains a given error. You should then use .catch() ...
確定! 回上一頁