有了 Promise 以後,你就可以把剛剛那段code 改寫成這樣: loginAsync('username', 'password') .then((res) => { if (res.result === 0) return ...
確定! 回上一頁