Using an enum with the different states, and better naming, the code can be rewritten like this : enum AsyncState { IDLE = 'IDLE', ...
確定! 回上一頁