A readyState of 4 signifies the completion of the HTTP interaction. The API for XMLHttpRequest.readState indicates that there are 5 possible values that can be set. readyState が「4」のとき、HTTP の相互作用は完了しています。 XMLHttpRequest.readState の API は、設定できる値が 5 つあることを示します。 - NetBeans