除了onmessage事件,WebSocket API還支援了onopen/onclose/onerror等事件。(顧名可思義,不必多說了吧?)另外有幾個屬性可以使用,readyState就 ...
確定! 回上一頁